Instance Propertyswift 6.0.1Swift
scalarCount
The number of scalars in the vector.
var scalarCount: Int { get }
Other members in extension
Typealiases
Type members
init(
) init(Scalar, Scalar, Scalar
) Creates a new vector from the given elements.
init(x: Scalar, y: Scalar, z: Scalar
) Creates a new vector from the given elements.
Instance members
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.