MCPcopy Create free account
hub / github.com/angular-rust/ux-charts / deg2rad

Function deg2rad

src/utils.rs:24–26  ·  view source on GitHub ↗

Converts [angle] in degrees to radians.

(angle: f64)

Source from the content-addressed store, hash-verified

22
23/// Converts [angle] in degrees to radians.
24pub fn deg2rad(angle: f64) -> f64 {
25 angle * PI / 180.0
26}
27
28/// Tests if [value] is in range [min]..[max], inclusively.
29pub fn is_in_range(value: f64, min: f64, max: f64) -> bool {

Callers 3

draw_axes_and_gridMethod · 0.85
draw_axes_and_gridMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected