Skip to main content

Math2d

A static class in Root.Township, Alta.

Static 2D geometry helpers.

Methods​

MemberWhat it is
static bool LineSegmentsIntersection(Vector2 a1, Vector2 a2, Vector2 b1, Vector3 b2, out float aProgress, out float bProgress)Returns true if segments a1-a2 and b1-b2 cross, giving how far along each the crossing is (0 to 1). b2 is a Vector3 but only x and y are used.