Skip to main content

Function: getFloatRelationships()

getFloatRelationships(i, float, wefts, warps, all_floats, cns): object[]

Defined in: simulation/simulation.ts:993

given a float "float", this function checks which floats are attached to said float on row i and returns the relationship between the float entered and all of it's attached floats.

Parameters

i

number

the row to check against

float

CNFloat

the original float we are checking against

wefts

number

number of wefts in the draft

warps

number

number of warps in the draft

all_floats

CNFloat[]

the entire list of floats

cns

ContactNeighborhood[]

the contact neighborhoods

Returns

object[]