Skip to main content

Rot2A

Type Alias Rot2A 

Source
pub type Rot2A<T> = Rotation2<T, Aligned>;
Expand description

A 2D rotation represented by a normalized complex number.

Use vector * rotation to transform vectors.

§Fields

  • cos: T The cosine of the angle.
  • sin: T The sine of the angle rotating +X to +Y.

Fields are exposed by implementing Deref and DerefMut.

§SIMD alignment

Currently, Rot2A<T> does not have SIMD alignment for any T type. The representation is always [T; 2]. This could be changed in a future version, so do not rely on it.

Aliased Type§

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