MCPcopy Index your code
hub / github.com/endbasic/endbasic / to_angle

Function to_angle

std/src/numerics.rs:78–83  ·  view source on GitHub ↗

Converts an angle in radians to the representation described by `angle_mode`.

(angle: f64, angle_mode: &AngleMode)

Source from the content-addressed store, hash-verified

76
77/// Converts an angle in radians to the representation described by `angle_mode`.
78fn to_angle(angle: f64, angle_mode: &AngleMode) -> f64 {
79 match angle_mode {
80 AngleMode::Degrees => angle.to_degrees(),
81 AngleMode::Radians => angle,
82 }
83}
84
85/// Tracks the state of the PRNG used by the random number manipulation functions and commands.
86///

Callers 1

execMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected