Function GridStringPulling.IntersectionLength

IntersectionLength (int2 nodeCenter, int2 segmentStart, int2 segmentEnd)

Intersection length of the given segment with a square of size Int3.Precision centered at nodeCenter.

Public Static
float IntersectionLength (

int2

nodeCenter

int2

segmentStart

int2

segmentEnd

)

Intersection length of the given segment with a square of size Int3.Precision centered at nodeCenter.

The return value is between 0 and sqrt(2).