Structures

The following structures are available globally.

  • Model of an angle.

    See more

    Declaration

    Swift

    public struct Angle
    extension Angle: Equatable
  • Undocumented

    See more

    Declaration

    Swift

    public struct Circle
  • Concrete ConvexPolygon.

    See more

    Declaration

    Swift

    public struct ConvexPolygon : ConvexPolygonProtocol
  • Contains one or more ConvexPolygonProtocol-conforming types, for the purposes of collision detection.

    See more

    Declaration

    Swift

    public struct ConvexPolygonContainer
  • Undocumented

    See more

    Declaration

    Swift

    public struct Ellipse
  • Representation of a point.

    See more

    Declaration

    Swift

    public struct Point
    extension Point: Additive
    extension Point: Equatable
    extension Point: Hashable
    extension Point: CustomStringConvertible
  • Polgonal shape containing at least three vertices.

    See more

    Declaration

    Swift

    public struct Polygon : PolygonProtocol
    extension Polygon: Additive
    extension Polygon: Equatable
    extension Polygon: CustomStringConvertible
  • Undocumented

    See more

    Declaration

    Swift

    public struct Polyline
  • A structure that contains the location and dimensions of a rectangle.

    Todo

    Consider storing vertices as with Polygon, as opposed to being computed.
    See more

    Declaration

    Swift

    public struct Rectangle : ConvexPolygonProtocol
    extension Rectangle: AdditiveSemigroup
    extension Rectangle: Equatable
    extension Rectangle: CustomStringConvertible
  • Model of rectangular size.

    See more

    Declaration

    Swift

    public struct Size
    extension Size: Zero
    extension Size: Equatable
  • Model of a triangle.

    See more

    Declaration

    Swift

    public struct Triangle : ConvexPolygonProtocol
    extension Triangle: Equatable
  • Two-dimensional Vector.

    See more

    Declaration

    Swift

    public struct Vector2