PointProjectableType
public protocol PointProjectableType : GeometricType
Protocol for geometric types that support vector projection operations.
Types conforming to this protocol expose a function that can project an arbitrary vector onto their surface.
-
The vector type associated with this
PointProjectableType
.Declaration
Swift
associatedtype Vector : VectorType
-
Returns the squared distance between the closest point in this geometric type’s surface to a given vector.
Seealso
distance(to:)
-
Returns the distance between the closest point in this geometric type’s surface to a given vector.
Equivalent to
self.distanceSquared(to: vector).squareRoot()
.Seealso
distanceSquared(to:)
-
distanceSquared(to:
Default implementation)
-
distance(to:
Default implementation)