IntersectionData
data class IntersectionData<V : Vector<V>>(val type: IntersectionType, val point: V? = null, val segment: Segment<V>? = null)(source)
Represents the result of an intersection operation between geometric segments.
If the segments do not intersect, the type will be IntersectionType.NONE. If they intersect at a single point, the type will be IntersectionType.POINT and the point will be non-null. If they overlap, the type will be IntersectionType.OVERLAP and the segment will represent the overlapping region.
Parameters
V
The type of vector representing the points in the intersection.