-
Circular collection of vertices comprising
PolygonProtocol.Declaration
Swift
var vertices: VertexCollection { get } -
ConvexPolygonContainercreated for testing collisions.Declaration
Swift
var collisionDetectable: ConvexPolygonContainer { get }
-
contains(_:Default implementation) Default Implementation
Declaration
Swift
func contains(_ point: Point) -> BoolReturn Value
trueif aPolygonProtocolcontains the givenpoint. -
edgesExtension methodDeclaration
Swift
public var edges: [Line.Segment] { get }Return Value
Array of the line values comprising the edges of the
PolygonProtocol- conforming type. -
rotationExtension methodDeclaration
Swift
public var rotation: Rotation { get }Return Value
Whether vertices are arranged clockwise / counterclockwise.
-
triplesExtension methodDeclaration
Swift
public var triples: [Point.Triple] { get }Return Value
Each adjacent triple
-
anglesExtension 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]) -> BoolReturn Value
trueif aPolygonProtocolcontains any of the the givenpoints. -
ys(at:Extension method) Declaration
Swift
public func ys(at x: Double) -> Set<Double>Return Value
A
Setof 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
Setof all of the x-values at the giveny.
View on GitHub
Install in Dash
PolygonProtocol Protocol Reference