Coordinates

struct Coordinates : Equatable

Defines the normalized barycentric coordinates for a Triangle.

  • wa

    Normalized weight of vertex a.

    Declaration

    Swift

    public var wa: Scalar
  • wb

    Normalized weight of vertex b.

    Declaration

    Swift

    public var wb: Scalar
  • wc

    Normalized weight of vertex c.

    Declaration

    Swift

    public var wc: Scalar
  • Declaration

    Swift

    public init(wa: Scalar, wb: Scalar, wc: Scalar)

Available where Vector.Scalar: AdditiveArithmetic

  • Returns zeroed-out barycentric coordinates.

    Declaration

    Swift

    static var zero: `Self` { get }