ConvexPolygon

public struct ConvexPolygon : ConvexPolygonProtocol

Concrete ConvexPolygon.

Instance Properties

Initializers

  • Creates a ConvexPolygon with the given sequence of `vertices.

    Warning

    Will crash if the given vertices form a concave polygon!

    Declaration

    Swift

    public init<S>(vertices: S) where S : Sequence, S.Element == Point