Initializerswift 6.0.1Swift
init(_:_:_:)
Creates a new vector from the given elements.
init(_ v0: Scalar, _ v1: Scalar, _ v2: Scalar)
Other members in extension
Typealiases
Type members
init(
) init(x: Scalar, y: Scalar, z: Scalar
) Creates a new vector from the given elements.
Instance members
var scalarCount: Int
The number of scalars in the vector.
var x: Scalar
The first element of the vector.
var y: Scalar
The second element of the vector.
var z: Scalar
The third element of the vector.
subscript(Int
) -> Scalar Accesses the scalar at the specified position.