Skip to main content

Vec2A

Type Alias Vec2A 

Source
pub type Vec2A<T> = Vector<2, T, Aligned>;
Expand description

A 2D vector.

§SIMD alignment

For appropriate T types, Vec2A<T> has SIMD alignment. For no SIMD use Vec2<T>.

§Fields

  • x: T (the first element of the vector)
  • y: T (the second element of the vector)

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

Aliased Type§

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