[][src]Type Definition tokyo::geom::Radian

type Radian = Angle<f32>;

The game server expects angles to be in radians. See euclid documentation for its API, but you'll mostly need new to create and get to retrieve radians. Radian::degrees method crates Radian from a value in degrees, which may be handy. Radian::positive may also be useful if you want to normalize the radian to be [0, 2PI).

Trait Implementations

impl RadianExt for Radian[src]

fn new(radians: f32) -> Radian[src]

Creates a new Radian based on a raw value in radians.

fn abs(&self) -> Radian[src]

Returns a Radian whose radian value is abs()ed. Not to be confused with positive() method, which is for normalization. Read more