Skip to main content

Vector2

Type Alias Vector2 

Source
pub type Vector2 = Vector2<f32>;

Aliased Type§

#[repr(C)]
pub struct Vector2 { pub x: f32, pub y: f32, }

Fields§

§x: f32

The x component of the vector.

§y: f32

The y component of the vector.

Trait Implementations§

Source§

impl FlakeVector2Ext for Vector2

Source§

fn angle_rad(&self) -> f32

Returns the radian angle [-π, π] of this vector relative to (1, 0)
Source§

fn angle_towards(&self, target: Vector2) -> f32

Returns the radian direction looking from this point toward a target point