sdleiF | ||
XYZ angles RO | Euler angles representation | |
string toString RO | textual form | |
Vector toVector RO | vector representationfor serialization | |
XYZ x RO | x vector | |
float xx | orientation.x.x | |
float xy | orientation.x.y | |
float xz | orientation.x.z | |
XYZ y RO | y vector | |
float yx | orientation.y.x | |
float yy | orientation.y.y | |
float yz | orientation.y.z | |
XYZ z RO | z vector | |
float zx | orientation.z.x | |
float zy | orientation.z.y | |
float zz | orientation.z.z | |
snoitcnuF | ||
function between2(Orient, Orient, float amount)doesn't return a value | interpolate orientationThe calling Orient receives the orientation interpolated from 2 input orientations. Example: var o1=Orient.new(), o2=Orient.new(), o3=Orient.new(); o2.rotate3(0,Math.pi/2,0); o3.between2(o1,o2,0); // o3 equals o2 o3.between2(o1,o2,1); // o3 equals o1 o3.between2(o1,o2,0.5); // o3 is halfway between o1 and o2 | |
function betweenOV(Orient, XYZ, float amount)doesn't return a value | interpolate orientationLike between2(), but the second Orient is composed of the supplied XYZ vector (X component) and Y Z vectors from the calling object. Example: var o=Orient.new(); o.betweenOV(o,(0,1,0),1); //no change, o remains 100 010 001 o.betweenOV(o,(0,1,0),0.9); //o is slightly rotated towards (0,1,0) o.betweenOV(o,(0,1,0),0); //o is completely transformed, o.x=(0,1,0) | |
function clone()returns Orient | create new Orient object | |
function localToWorld(XYZ point, XYZ center)returns XYZ | transform coordinates | |
function lookAt(XYZ direction, XYZ up)doesn't return a value | calculate rotation from 2 vectors | |
function new()returns Orient | create new Orient object | |
function newFromVector(Vector)returns Orient | create new Orient object | |
function normalize()doesn't return a value | normalize | |
function reset()doesn't return a value | set identity matrix | |
function revRotate(Orient)doesn't return a value | reverse rotate using Orient object | |
function rotate(Orient)doesn't return a value | rotate using Orient object | |
function rotate3(float x, float y, float z)doesn't return a value | rotate around 3 axes | |
function set(Orient)doesn't return a value | copy from another Orient object | |
function worldToLocal(XYZ point, XYZ center)returns XYZ | transform coordinates |
Global context |