Convex3Type
public protocol Convex3Type : GeometricType
Protocol for 3D geometric types defined by floating-point vectors that form closed convex shapes.
-
The floating-point vector type associated with this
Convex3Type
.Declaration
Swift
associatedtype Vector : Vector3FloatingPoint
-
Performs an intersection test against the given line, returning up to two points representing the entrance and exit intersections against this convex shape’s outer perimeter.
Declaration
Swift
func intersection<Line: Line3FloatingPoint>( with line: Line ) -> ConvexLineIntersection<Vector> where Line.Vector == Vector