Instance Propertyswift 6.0.1Swift
w
The fourth element of the vector.
var w: Scalar { get set }
Other members in extension
Typealiases
Type members
init(
) init(Scalar, Scalar, Scalar, Scalar
) Creates a new vector from the given elements.
init(lowHalf: SIMD2<Scalar>, highHalf: SIMD2<Scalar>
) Creates a new vector from two half-length vectors.
init(x: Scalar, y: Scalar, z: Scalar, w: Scalar
) Creates a new vector from the given elements.
Instance members
var evenHalf: SIMD2<Scalar>
A half-length vector made up of the even elements of the vector.
var highHalf: SIMD2<Scalar>
A half-length vector made up of the high elements of the vector.
var lowHalf: SIMD2<Scalar>
A half-length vector made up of the low elements of the vector.
var oddHalf: SIMD2<Scalar>
A half-length vector made up of the odd elements of the vector.
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.