ConvexPolygonContainer
public struct ConvexPolygonContainer
Contains one or more ConvexPolygonProtocol-conforming types, for the purposes of
collision detection.
-
ConvexPolygonProtocol-conforming types contained herein.Declaration
Swift
public let polygons: [ConvexPolygonProtocol]
-
Creates a
ConvexPolygonContainerwith the givenpolygons.Declaration
Swift
public init<S>(_ polygons: S) where S : Sequence, S.Element : ConvexPolygonProtocol -
Creates a
ConvexPolygonContainerwith the singleconvexPolygon.Declaration
Swift
public init(_ convexPolygon: ConvexPolygonProtocol)
View on GitHub
Install in Dash
ConvexPolygonContainer Structure Reference