Initializerswift 6.0.1Swift
init(x:y:z:)
Creates a new vector from the given elements.
init(x: Scalar, y: Scalar, z: Scalar)
Parameters
Other members in extension
Typealiases
Type members
init(
) init(Scalar, Scalar, 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.