Companion

Functions

Link copied to clipboard
fun fromPointAndDirection(point: Vec2, direction: Vec2, precision: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE): Line2

Creates a line from a point and a direction vector.

Link copied to clipboard
fun fromPoints(p1: Vec2, p2: Vec2, precision: DoubleEquivalence = DEFAULT_DOUBLE_EQUIVALENCE): Line2

Creates a line from two points.