Skip to content

exactMath beta ​

Variable of @v12-engine/engine

ts
exactMath: {
    readonly sin: typeof sin;
    readonly cos: typeof cos;
    readonly atan: typeof atan;
    readonly atan2: typeof atan2;
    readonly hypot: typeof hypot;
    readonly exp: typeof exp;
}

The simulation's maths, the same in every engine: what a game's rules use in the place of Math's, so that its worlds come out the same in a page, on a server and in a replay (sin, cos, atan, atan2, hypot, exp)