editor.common.math

This module provide math toolkit.

Module Contents

editor.common.math.clamp(t, min, max)[source]
editor.common.math.sign(x)[source]
editor.common.math.cosd(deg)[source]
editor.common.math.sind(deg)[source]
editor.common.math.getDir(dx, dy)[source]
editor.common.math.getDirBetween(p1, p2)[source]
editor.common.math.vecAngle(dir, len)[source]
editor.common.math.randBoolean()[source]
editor.common.math.randSign()[source]
editor.common.math.noise(range)[source]
editor.common.math.wrapDir(dir)[source]
editor.common.math.wrapDir360(dir)[source]
editor.common.math.dirDiff(dir1, dir2)[source]
editor.common.math.locAt(begin, end, value)[source]
editor.common.math.lerp(begin, end, t, ease=None)[source]
editor.common.math.lerpI(begin, end, t, ease=None)[source]
editor.common.math.rangeMap(t, s1, e1, s2, e2)[source]
editor.common.math.rangeMapI(t, s1, e1, s2, e2)[source]