Line2FloatingPoint

public protocol Line2FloatingPoint : Line2Type, LineFloatingPoint where Self.Vector : Vector2FloatingPoint

Protocol for 2D line types where the vectors are floating-point vectors.

  • intersection(with:) Default implementation

    Returns the result of a line-line intersection with other.

    Default Implementation

    Declaration

    Swift

    func intersection<Line: Line2FloatingPoint>(with other: Line)
        -> LineIntersectionResult<Vector>? where Line.Vector == Vector