Tin

Examples · packages/geometry · 332 of 339

lib

geometry: small 2D helpers for robot arms.

examples/packages/geometry/lib.tintin run examples/packages/geometry/lib.tin
// geometry: small 2D helpers for robot arms. Import it with `import "geometry"`,
// or one file with `import "geometry/vec"`.

/// The package version, for logs.
let VERSION = "0.1.0"

/// Degrees to radians: `toRadians(180.0)` is π.
fn toRadians(deg: float): float => deg * 3.141592653589793 / 180.0