Vector4
public struct Vector4
A vector with 4 component.
-
Creates a vector for which all components are equal to the given scalar.
Declaration
Swift
public init(scalar: Scalar)
-
The number of scalar components in this vector type.
Declaration
Swift
public static var length: Int
-
The empty vector (all scalar components are equal to
0.0
).Declaration
Swift
public static var zero: Vector4
-
Interpolate between the given values.
Declaration
Swift
public func interpolatedTo(_ to: Vector4, alpha: Scalar) -> Vector4
-
Interpolate between the given values.
Declaration
Swift
public mutating func interpolateTo(_ to: Vector4, alpha: Scalar)