CircularArray
extension CircularArray where Element == Point
-
Note
Uses Gift Wrapping algorithm.Declaration
Swift
public var convexHull: VertexCollection { get }Return Value
The convex hull, or envelope, of
VertexCollection. -
Declaration
Swift
public var edges: [Line.Segment] { get }Return Value
Array of the line values comprising the edges of the
PolygonProtocol- conforming type. -
Declaration
Swift
public var axes: [Vector2] { get }Return Value
The two-dimensional vector of each axis created between each adjacent pair of vertices.
-
FIXME: Consider implementing
triplesoverSequence, à lapairs.Declaration
Swift
public var triples: [Point.Triple] { get }Return Value
Array of triplets of points created with each.
-
Declaration
Swift
public var angles: [Angle] { get }Return Value
Array of the angles of each adjacent triple of vertices.
-
Declaration
Swift
public var formConvexPolygon: Bool { get }Return Value
trueif the vertices contained herein form a convex polygon. Otherwise,false. -
Declaration
Swift
public var rotation: Rotation { get }Return Value
Wheter vertices are arranged in a clockwise or counterclockwise fasion.
View on GitHub
Install in Dash
CircularArray Extension Reference