std.math.float
The module module std.math.float, read from deploy/std/math/float.rho. This page is generated from the source, so it describes what the code declares.
Functions
abs_f64()
fn abs_f64(x: f64) f64
atan2()
fn atan2(y: f64, x: f64) f64
cos()
fn cos(x: f64) f64
degtorad()
fn deg_to_rad(degrees: f64) f64
lerp()
fn lerp(a: f64, b: f64, t: f64) f64
pow()
fn pow(x: f64, y: f64) f64
radtodeg()
fn rad_to_deg(radians: f64) f64
sin()
fn sin(x: f64) f64
sqrt()
fn sqrt(x: f64) f64
wrap_pi()
fn wrap_pi(angle: f64) f64
Externs
Externs are supplied by the host rather than declared in Rho, which is how a port reaches a service.
| Extern | Signature |
|---|---|
| c_atan2 | extern fn c_atan2(y: f64, x: f64) f64 |
| c_cos | extern fn c_cos(x: f64) f64 |
| c_fabs | extern fn c_fabs(x: f64) f64 |
| c_floor | extern fn c_floor(x: f64) f64 |
| c_pow | extern fn c_pow(x: f64, y: f64) f64 |
| c_sin | extern fn c_sin(x: f64) f64 |
| c_sqrt | extern fn c_sqrt(x: f64) f64 |