Skip to main content

Angle2

Represents a 2D angle, or rotation. Stored internally in radians.

struct Angle2 {
// from native code
rad: f32
}

Fields

rad

rad: f32

Methods

to_radians

fn to_radians(self) -> f32

to_degrees

fn to_degrees(self) -> f32