-
Circular collection of vertices comprising
PolygonProtocol
.Declaration
Swift
var vertices: VertexCollection { get }
-
ConvexPolygonContainer
created for testing collisions.Declaration
Swift
var collisionDetectable: ConvexPolygonContainer { get }
-
contains(_:
Default implementation) Default Implementation
Declaration
Swift
func contains(_ point: Point) -> Bool
Return Value
true
if aPolygonProtocol
contains the givenpoint
. -
edges
Extension methodDeclaration
Swift
public var edges: [Line.Segment] { get }
Return Value
Array of the line values comprising the edges of the
PolygonProtocol
- conforming type. -
rotation
Extension methodDeclaration
Swift
public var rotation: Rotation { get }
Return Value
Whether vertices are arranged clockwise / counterclockwise.
-
triples
Extension methodDeclaration
Swift
public var triples: [Point.Triple] { get }
Return Value
Each adjacent triple
-
angles
Extension methodDeclaration
Swift
public var angles: [Angle] { get }
Return Value
Array of the angles.
-
contains(anyOf:
Extension method) Declaration
Swift
public func contains(anyOf points: [Point]) -> Bool
Return Value
true
if aPolygonProtocol
contains any of the the givenpoints
. -
ys(at:
Extension method) Declaration
Swift
public func ys(at x: Double) -> Set<Double>
Return Value
A
Set
of all of the y-values at the givenx
. -
xs(at:
Extension method) Declaration
Swift
public func xs(at y: Double) -> Set<Double>
Return Value
A
Set
of all of the x-values at the giveny
.