ht.Math.Euler(x, y, z, order, ReverseOrder)

new Euler(x, y, z, order, ReverseOrder)

创建欧拉角

Parameters:
Name Type Attributes Description
x number <optional>

x 轴旋转弧度

y number <optional>

y 轴旋转弧度

z number <optional>

z 轴旋转弧度

order "XYZ" | "YZX" | "ZXY" | "XZY" | "YXZ" | "ZYX" <optional>

旋转顺序

ReverseOrder boolean <optional>

是否反转 order

Members

order :"XYZ"|"YZX"|"ZXY"|"XZY"|"YXZ"|"ZYX"

x :number

y :number

z :number

Methods

fromArray(arr) → {ht.Math.Euler}

Parameters:
Name Type Description
arr Array.<number>
Returns:
ht.Math.Euler

ReverseOrder(order) → {"XYZ"|"YZX"|"ZXY"|"XZY"|"YXZ"|"ZYX"}

Parameters:
Name Type Description
order string
Returns:
"XYZ" | "YZX" | "ZXY" | "XZY" | "YXZ" | "ZYX"