Trait nannou::prelude::Vec2Angle

source ·
pub trait Vec2Angle {
    // Required method
    fn angle(self) -> f32;
}
Expand description

Short-hand for retrieving the angle of the vector in radians.

Required Methods§

source

fn angle(self) -> f32

The angle of the vector in radians.

Implemented internally as glam::Vec2::X.angle_between(self).

Implementors§