Structures
The following structures are available globally.
-
Model of an angle.
See moreDeclaration
Swift
public struct Angle
extension 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 Point
extension Point: Additive
extension Point: Equatable
extension Point: Hashable
extension Point: CustomStringConvertible
-
Polgonal shape containing at least three vertices.
See moreDeclaration
Swift
public struct Polygon : PolygonProtocol
extension Polygon: Additive
extension Polygon: Equatable
extension Polygon: CustomStringConvertible
-
Undocumented
See moreDeclaration
Swift
public struct Polyline
-
A structure that contains the location and dimensions of a rectangle.
Todo
Consider storing vertices as withPolygon
, as opposed to being computed.Declaration
Swift
public struct Rectangle : ConvexPolygonProtocol
extension Rectangle: AdditiveSemigroup
extension Rectangle: Equatable
extension Rectangle: CustomStringConvertible
-
Model of rectangular size.
See moreDeclaration
Swift
public struct Size
extension Size: Zero
extension Size: Equatable
-
Model of a triangle.
See moreDeclaration
-
Two-dimensional Vector.
See moreDeclaration
Swift
public struct Vector2