Theme:

Euler

Euler angles representing a rotation. Components are in radians.

Setting any component triggers an internal change callback (used to sync with Quaternion on Object3D).

Constructor

const e = new Euler(x, y, z, order) // defaults to (0, 0, 0, 'XYZ')

Properties

  • x, y, z — Rotation angles in radians
  • order — Rotation order string (e.g. 'XYZ', 'YXZ', 'ZXY', etc.)
  • isEuler — Type flag (true)

Static

  • Euler.DEFAULT_ORDER'XYZ'

Methods

  • set(x, y, z, order?) — Set components
  • copy(euler) — Copy from another Euler
  • clone() — Return a copy
  • setFromRotationMatrix(m, order?, update?) — From 4x4 rotation matrix
  • setFromQuaternion(q, order?, update?) — From quaternion
  • setFromVector3(v, order?) — From vector (x, y, z)
  • reorder(newOrder) — Change order (discards revolution info)
  • equals(euler) — Equality test
  • fromArray(array) — Set from array [x, y, z, order?]
  • toArray(array?, offset?) — Write to array