Intersection2D

sealed class Intersection2D<out V>(source)

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.

Inheritors

Types

Link copied to clipboard
object Companion

Factory methods for Intersection2D.

Link copied to clipboard

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

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

Objects intersect in a discrete number of points.

Link copied to clipboard

Objects do not intersect.

Link copied to clipboard
data class SinglePoint<P : Vector2D<P>>(val 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).