Skip to main content

FlakeVector2Ext

Trait FlakeVector2Ext 

Source
pub trait FlakeVector2Ext {
    // Required methods
    fn angle_rad(&self) -> f32;
    fn angle_towards(&self, target: Vector2) -> f32;
}

Required Methods§

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§