PointProjectablePlaneType

public protocol PointProjectablePlaneType : PlaneType, PointProjectableType, SignedDistanceMeasurableType

Represents a plane type that has support for point-projection.

  • signedDistance(to:) Default implementation

    Returns the signed distance of a given point to this plane.

    By offsetting the point by -(signed distance x normal), the projected point on the plane is retrieved.

    Default Implementation

    Declaration

    Swift

    func signedDistance(to vector: Vector) -> Vector.Scalar
  • project(_:) Extension method

    Projects a given vector on this plane.

    Returns the closest point on this plane to vector.

    Declaration

    Swift

    @inlinable
    public func project(_ vector: Vector) -> Vector