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
ConvexPolygonContainer
with the givenpolygons
.Declaration
Swift
public init<S>(_ polygons: S) where S : Sequence, S.Element : ConvexPolygonProtocol
-
Creates a
ConvexPolygonContainer
with the singleconvexPolygon
.Declaration
Swift
public init(_ convexPolygon: ConvexPolygonProtocol)