Skip to main content

Vec4

Type Alias Vec4 

Source
pub type Vec4<T> = Vector<4, T, Unaligned>;
Expand description

A 4D vector.

§No SIMD alignment

Vec4<T> does not have SIMD alignment, for that use Vec4A<T>.

§Fields

  • x: T (the first element of the vector)
  • y: T (the second element of the vector)
  • z: T (the third element of the vector)
  • w: T (the fourth element of the vector)

Note that these fields are only exposed by implementing Deref and DerefMut.

Aliased Type§

pub struct Vec4<T>(/* private fields */);