Rotation in Anark Studio 2.5

Specifies rotation direction.

Inherits from:

Instance Properties

name type description
prototype Object The prototype for a class. [from Object]
constructor Object A reference to the constructor class for the current object instance. [from Object]
x Number X-axis rotation.
y Number Y-axis rotation.
z Number Z-axis rotation.

Instance Methods

name returns description
toLocaleString() String For most objects, the same as toString() unless explicitly overridden. [from Object]
valueOf() String Returns the internal this value of the object. [from Object]
hasOwnProperty() Boolean Determines if the object/instance itself has the named property or method. [from Object]
isPrototypeOf() Boolean Determines if the calling object prototype is in the inheritance chain for the supplied argument. [from Object]
propertyIsEnumerable() Boolean Determines if the object/instance itself has a property or method of the supplied name which will appear in a for (prop in obj) enumeration. [from Object]
copy() Rotation Return a copy of the rotation object.
add() (none) Add on a rotation vector.
subtract() (none) Subtract a rotation amount.
scale() (none) Scale the rotation by a factor.
equals() Boolean Compare two rotation vectors for equivalence.
maxVector() (none) Calculate the maximum rotation vector.
minVector() (none) Calculate the minimum rotation vector.
linear() (none) Move the rotation towards another rotation vector.
transform() (none) Transform the rotation vector by a matrix.
toString() String Returns a string representation of the object. [from Object]

Description

A rotation is a special kind of vector encapsulating the data and operations of three angular components, X, Y and Z.

Constructor syntax

var rotation = new Rotation( x, y, z );
x
optional — The floating point value representing the degrees of rotation about the X axis.
y
optional — The floating point value representing the degrees of rotation about the Y axis.
z
optional — The floating point value representing the degrees of rotation about the Z axis.

Properties that are a Rotation

name object description
rotation Node Rotation of the object.

Methods that return a Rotation

name of object description
copy() Rotation Return a copy of the rotation object.

Arguments that are a Rotation

name in method of object description
otherRotation add() Rotation The rotation vector to add.
otherRotation subtract() Rotation The rotation/vector to subtrac
otherRotation equals() Rotation The rotation vector to compare
otherRotation maxVector() Rotation The rotation vector to compare
otherRotation minVector() Rotation The rotation vector to compare