Vector4Additive
public protocol Vector4Additive : Vector4Type, VectorAdditive where Self.SubVector3 : Vector3Additive
Protocol for 4D vector types with additive scalars.
-
init(_:Default implementation) Creates a new vector with the coordinates of a given
Vector2Type, and 0 on thezandwaxis.Default Implementation
Creates a new vector with the coordinates of a given
Vector3Type, and 0 on thewaxis.Declaration
Swift
init<V>(_ vec: V) where V : Vector2Type, Self.Scalar == V.Scalar -
Creates a new vector with the coordinates of a given
Vector3Type, and 0 on thewaxis.Declaration
Swift
init<V>(_ vec: V) where V : Vector3Type, Self.Scalar == V.Scalar