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