isCollinearWith

open fun isCollinearWith(point: P): Boolean

Checks if first, second and point lie on a single line.


open fun isCollinearWith(other: Segment2D<P>): Boolean

Checks if two segments lie on a single line.