-
Notifications
You must be signed in to change notification settings - Fork 0
Euler
The Euler is a tool to compute rotations
import { Euler } from "noobgl-euler";new Euler(x, y, z, order);-
x(optional) rotation angle along x axis in radian (default 0). -
y(optional) rotation angle along y axis in radian (default 0). -
z(optional) rotation angle along z axis in radian (default 0). -
order(optional) order in which to compute rotations (defaultXYZ).-
XYZXZYYXZYZXZXYZYX
-
set(x, y, z)Set the x, y and z angles.
-
xrotation angle along x axis in radian. -
yrotation angle along y axis in radian. -
zrotation angle along z axis in radian.
add(x, y, z)Add these angles to the current angles along x, y and z axis.
-
xrotation angle along x axis in radian. -
yrotation angle along y axis in radian. -
zrotation angle along z axis in radian.
add(x, y, z)Add these angles to the current angles along x, y and z axis.
-
xrotation angle along x axis in radian. -
yrotation angle along y axis in radian. -
zrotation angle along z axis in radian.
subtract(x, y, z)Subtract these angles to the current angles along x, y and z axis.
-
xrotation angle along x axis in radian. -
yrotation angle along y axis in radian. -
zrotation angle along z axis in radian.
multiply(x, y, z)Multiply these angles to the current angles along x, y and z axis.
-
xrotation angle along x axis in radian. -
yrotation angle along y axis in radian. -
zrotation angle along z axis in radian.
divide(x, y, z)Divide these angles to the current angles along x, y and z axis.
-
xrotation angle along x axis in radian. -
yrotation angle along y axis in radian. -
zrotation angle along z axis in radian.
clone()Clone the current Euler instance.
static from(source, order)Create an instance of Euler from another type of data.
-
sourcethe data from which rotation is extracted, may be:Matrix3Matrix4
-
order(optional) order in which to compute rotations (defaultXYZ).-
XYZXZYYXZYZXZXYZYX
-