PlaneIntersectablePlane2Type

public protocol PlaneIntersectablePlane2Type : LineIntersectablePlaneType where Self.Vector : Vector2Type

A 1D plane in 2D space that can be intersected with other intersectable planes, producing intersection lines.

A plane-intersectable plane is implicitly a line-intersectable plane as well.

  • Returns the intersection of this 2 dimensional plane with another plane as a vector, or nil, if the planes are parallel or coplanar.

    Declaration

    Swift

    func intersection<Plane>(with other: Plane) -> Vector? where Plane : PlaneType, Self.Vector == Plane.Vector

Available where Vector: Vector2FloatingPoint

  • intersection(with:) Default implementation

    Default Implementation

    Declaration

    Swift

    public func intersection<Plane>(with other: Plane) -> Vector? where Plane : PlaneType, Self.Vector == Plane.Vector