Winding

public extension Winding
  • Cast constructor, converting any binary integer to a Winding.

    Declaration

    Swift

    @inlinable
    init!<I>(_ raw: I) where I : BinaryInteger

    Parameters

    raw

    The raw integer value to initialise the enum from

  • Vertices are in a clockwise order

    Declaration

    Swift

    static let clockwise: CoglWinding
  • Vertices are in a counter-clockwise order

    Declaration

    Swift

    static let counterClockwise: CoglWinding