-
new Euler(x, y, z)
-
Name Type Default Description x
Number 0 optional 角度 X, 弧度制
y
Number 0 optional 角度 Y, 弧度制
z
Number 0 optional 角度 Z, 弧度制
Members Show Inherited
Methods Show Inherited
-
set(x, y, z){Euler}
-
Set the components of a euler to the given values
Name Type Description x
Number x 轴旋转角度, 弧度制
y
Number y 轴旋转角度, 弧度制
z
Number z 轴旋转角度, 弧度制
Returns:
Type Description Euler this -
setDegree(degX, degY, degZ){Euler}
-
设置角度
Name Type Description degX
Number x 轴旋转角度, 角度制
degY
Number y 轴旋转角度, 角度制
degZ
Number z 轴旋转角度, 角度制
Returns:
Type Description Euler this -
fromArray(array, offset){Euler}
-
从数组赋值
Name Type Default Description array
Array.<number> | TypedArray 数组
offset
Number 0 optional 数组偏移值
Returns:
Type Description Euler this -
toArray(array, offset){Array}
-
转换到数组
Name Type Default Description array
Array.<number> | TypedArray [] optional 数组
offset
Number 0 optional 数组偏移值
Returns:
Type Description Array -
fromMat4(mat, order){Euler}
-
Creates a euler from the given 4x4 rotation matrix.
Name Type Default Description mat
Matrix4 rotation matrix
order
string this.order optional 旋转顺序,默认为当前Euler实例的order
Returns:
Type Description Euler this -
fromQuat(quat, order){Euler}
-
Creates a euler from the given quat.
Name Type Default Description quat
Quaternion order
String this.order optional 旋转顺序,默认为当前Euler实例的order
Returns:
Type Description Euler this