Intersection2D

sealed class Intersection2D<out V>

Describes the result an intersection operation in an euclidean 2D space. Type V must extend Vector2D. The requirement is not explicitly enforced to allow the class to work covariantly.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
object InfinitePoints : Intersection2D<Nothing>

Objects intersect in infinite points (e.g. overlapping segments).

Link copied to clipboard
data class MultiplePoints<P : Vector2D<P>>(points: List<P>) : Intersection2D<P>

Objects intersect in a discrete number of points.

Link copied to clipboard
object None : Intersection2D<Nothing>

Objects do not intersect.

Link copied to clipboard
data class SinglePoint<P : Vector2D<P>>(point: P) : Intersection2D<P>

Objects intersect in a single point.

Properties

Link copied to clipboard
open val asList: List<V>

List of intersection points (in case of infinite points this is empty).

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard