Rho Rho language and toolchain

std.math.embedded

The module module std.math.embedded, read from deploy/std/math/embedded.rho. This page is generated from the source, so it describes what the code declares.

Functions

deadband()

fn deadband(x: f64, threshold: f64) f64

degtorad()

fn deg_to_rad(degrees: f64) f64

map_range()

fn map_range(x: f64, in_min: f64, in_max: f64, out_min: f64, out_max: f64) f64

radtodeg()

fn rad_to_deg(radians: f64) f64

saturate()

fn saturate(x: f64, low: f64, high: f64) f64

smoothstep01()

fn smoothstep01(x: f64) f64