[name]

Euler Angles.

Euler angles describe a rotation transformation by rotating an object on its various axes in specified amounts per axis, and a specified axis order. (More information on Wikipedia)

Example

var a = new THREE.Euler( 0, 1, 1.57, 'XYZ' ); var b = new THREE.Vector3( 1, 0, 1 ); b.applyEuler(a);

Constructor

[name]( [page:Float x], [page:Float y], [page:Float z], [page:String order] )

x -- [page:Float] the angle of the x axis in radians
y -- [page:Float] the angle of the y axis in radians
z -- [page:Float] the angle of the z axis in radians
order -- [page:String] A string representing the order that the rotations are applied, defaults to 'XYZ' (must be upper case).
A euler angle for transforming

Properties

[property:Float x]

[property:Float y]

[property:Float z]

[property:String order]

Methods

[method:Euler set]( [page:Float x], [page:Float y], [page:Float z], [page:String order] ) [page:Euler this]

x -- [page:Float] Angle in x axis in radians
y -- [page:Float] Angle in y axis in radians
z -- [page:Float] Angle in z axis in radians
order -- [page:string] Order of axes, defaults to 'XYZ' (must be upper case)
Sets the angles of this euler transform.

[method:Euler copy]( [page:Euler euler] ) [page:Euler this]

Copies value of *euler* to this euler.

[method:Euler setFromRotationMatrix]( [page:Matrix4 m], [page:String order] ) [page:Euler this]

m -- [page:Matrix4] assumes upper 3x3 of matrix is a pure rotation matrix (i.e. unscaled)
order -- [page:string] Order of axes, defaults to 'XYZ' (must be upper case)
Sets the angles of this euler transform from a pure rotation matrix based on the orientation specified by order.

[method:Euler setFromQuaternion]( [page:Quaternion q], [page:String order] ) [page:Euler this]

q -- [page:Quaternion] quaternion must be normalized
order -- [page:string] Order of axes, defaults to 'XYZ' (must be upper case)
Sets the angles of this euler transform from a normalized quaternion based on the orientation specified by order.

[method:Euler reorder]( [page:String newOrder] ) [page:Euler this]

Resets the euler angle with a new order by creating a quaternion from this euler angle and then setting this euler angle with the quaternion and the new order.
WARNING: this discards revolution information.

[method:Euler setFromVector3]( [page:Vector3 vector], [page:String order] ) [page:Euler this]

vector -- [page:Vector3]. order -- [page:string] Order of axes, defaults to 'XYZ' (must be upper case)
Optionally Vector3 to the XYZ parameters of Euler, and order to the Euler's order property.

[method:Vector3 toVector3]()

Returns the Euler's XYZ properties as a Vector3.

[method:Euler fromArray]( [page:Array array] ) [page:Euler this]

array -- [page:Array] of length 3 or 4. array[3] is an optional order argument.
Assigns this euler's x angle to array[0].
Assigns this euler's y angle to array[1].
Assigns this euler's z angle to array[2].
Optionally assigns this euler's order to array[3].

[method:Array toArray]( [page:Array array] )

array -- Optional array to store the euler.
Returns an array [x, y, z, order]

[method:Boolean equals]( [page:Euler euler] )

Checks for strict equality of this euler and *euler*.

[method:Euler clone]()

Returns a new euler created from this euler.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]