Rho Rho language and toolchain

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.

ExternSignature
c_atan2extern fn c_atan2(y: f64, x: f64) f64
c_cosextern fn c_cos(x: f64) f64
c_fabsextern fn c_fabs(x: f64) f64
c_floorextern fn c_floor(x: f64) f64
c_powextern fn c_pow(x: f64, y: f64) f64
c_sinextern fn c_sin(x: f64) f64
c_sqrtextern fn c_sqrt(x: f64) f64