Vectors
-
Conforming types can be linearly interpolated.
See moreDeclaration
Swift
public protocol Interpolatable
-
The underlying type of scalar quantities.
Declaration
Swift
public typealias Scalar = Double
-
Declaration
Swift
public protocol VectorType: Equatable, Interpolatable, VectorMathCapable
-
Conforming types can be converted to and from vector types.
See moreDeclaration
Swift
public protocol VectorConvertible: Equatable, Interpolatable
-
Conforming types implement functions for basic vector arithmetic.
See moreDeclaration
Swift
public protocol VectorMathCapable
-
A vector with 1 component.
Declaration
Swift
public typealias Vector1 = Scalar
-
-
A vector with 2 components.
See moreDeclaration
Swift
public struct Vector2
-
A vector with 3 components.
See moreDeclaration
Swift
public struct Vector3
-
A vector with 4 component.
See moreDeclaration
Swift
public struct Vector4