Vectors

  • Conforming types can be operated on as vectors composed of Scalar components.

    See more

    Declaration

    Swift

    public protocol Vector : Interpolatable, Equatable
  • The underlying type of scalar quantities.

    Declaration

    Swift

    public typealias Scalar = Double
  • Conforming types can be linearly interpolated.

    See more

    Declaration

    Swift

    public protocol Interpolatable
  • A vector with 2 components.

    See more

    Declaration

    Swift

    public struct Vector2
  • A vector with 3 components.

    See more

    Declaration

    Swift

    public struct Vector3
  • A vector with 4 component.

    See more

    Declaration

    Swift

    public struct Vector4