Structures
The following structures are available globally.
-
Model of an angle.
See moreDeclaration
Swift
public struct Angleextension Angle: Equatable -
Undocumented
See moreDeclaration
Swift
public struct Circle -
Concrete ConvexPolygon.
See moreDeclaration
Swift
public struct ConvexPolygon : ConvexPolygonProtocol -
Contains one or more
See moreConvexPolygonProtocol-conforming types, for the purposes of collision detection.Declaration
Swift
public struct ConvexPolygonContainer -
Undocumented
See moreDeclaration
Swift
public struct Ellipse -
Representation of a point.
See moreDeclaration
Swift
public struct Pointextension Point: Additiveextension Point: Equatableextension Point: Hashableextension Point: CustomStringConvertible -
Polgonal shape containing at least three vertices.
See moreDeclaration
Swift
public struct Polygon : PolygonProtocolextension Polygon: Additiveextension Polygon: Equatableextension Polygon: CustomStringConvertible -
Undocumented
See moreDeclaration
Swift
public struct Polyline -
A structure that contains the location and dimensions of a rectangle.
See moreTodo
Consider storing vertices as withPolygon, as opposed to being computed.Declaration
Swift
public struct Rectangle : ConvexPolygonProtocolextension Rectangle: AdditiveSemigroupextension Rectangle: Equatableextension Rectangle: CustomStringConvertible -
Model of rectangular size.
See moreDeclaration
Swift
public struct Sizeextension Size: Zeroextension Size: Equatable -
Model of a triangle.
See moreDeclaration
-
Two-dimensional Vector.
See moreDeclaration
Swift
public struct Vector2
View on GitHub
Install in Dash
Structures Reference