Intersectable
public protocol Intersectable : AnyObject, Shape
Any shape that can calculate points of intersection between itself and a Line or Vector
-
Find any intersection points between the receiver and the specified line
Declaration
Swift
func intersections(with otherShape: Intersectable) -> [Vector]Parameters
lineLine to intersect
-
lineSegments(_:Default implementationfirstOnly: )
-
lineIntersection(startPoint:Extension methodendPoint: ) Find any intersection points between the receiver and the specified line
Declaration
Parameters
startPointStarting point of the Line
endPointEnding point of the Line
Return Value
An array of intersection points
-
lineSegments(startPoint:Extension methodendPoint: firstOnly: )
-
pointsDistributed(every:Extension methodstarting: ending: )
View on GitHub
Intersectable Protocol Reference