LineIntersectionResult

public struct LineIntersectionResult<Vector> where Vector : VectorFloatingPoint
extension LineIntersectionResult: Equatable where Vector: Equatable
extension LineIntersectionResult: Hashable where Vector: Hashable

Describes the result of a line-line intersection query on two Line2FloatingPoint.

  • Convenience for Vector.Scalar.

    Declaration

    Swift

    public typealias Scalar = Vector.Scalar
  • The intersection point in global space.

    Declaration

    Swift

    public var point: Vector
  • A scalar value between (0-1) that describe the normalized magnitude of the intersection point point on the first line.

    Declaration

    Swift

    public var line1NormalizedMagnitude: Vector.Scalar
  • A scalar value between (0-1) that describe the normalized magnitude of the intersection point point on the second line.

    Declaration

    Swift

    public var line2NormalizedMagnitude: Vector.Scalar
  • Undocumented

    Declaration

    Swift

    public init(point: Vector,
                line1NormalizedMagnitude: Vector.Scalar,
                line2NormalizedMagnitude: Vector.Scalar)