Instance Propertyswift 6.0.3Swift
x
The first element of the vector.
var x: Scalar { get set }
The first element of the vector.
var x: Scalar { get set }
import Swift
@frozen struct SIMD4<Scalar> where Scalar : SIMDScalar
A vector of four scalar values.
init()
init(_ v0: Scalar, _ v1: Scalar, _ v2: Scalar, _ v3: 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.
var evenHalf: SIMD2<Scalar> { get set }
A half-length vector made up of the even elements of the vector.
var highHalf: SIMD2<Scalar> { get set }
A half-length vector made up of the high elements of the vector.
var lowHalf: SIMD2<Scalar> { get set }
A half-length vector made up of the low elements of the vector.
var oddHalf: SIMD2<Scalar> { get set }
A half-length vector made up of the odd elements of the vector.
var scalarCount: Int { get }
The number of scalars in the vector.
var w: Scalar { get set }
The fourth element of the vector.
var y: Scalar { get set }
The second element of the vector.
var z: Scalar { get set }
The third element of the vector.
subscript(index: Int) -> Scalar { get set }
Accesses the scalar at the specified position.
typealias MaskStorage = SIMD4<Scalar.SIMDMaskScalar>