The X Toolkit API

X.vector

/**
* @constructor
* @see goog.math.Vec3
*/
var v = new X.vector();
/**
* Get the x component of this vector.
*
* @return {number} The x component of this vector.
* @public
*/
var _xx = v.xx;
/**
* Get the y component of this vector.
*
* @return {number} The y component of this vector.
* @public
*/
var _yy = v.yy;
/**
* Get the z component of this vector.
*
* @return {number} The z component of this vector.
* @public
*/
var _zz = v.zz;
/**
* @see goog.math.Vec3.prototype.add
*/
v.add();
/**
* @see goog.math.Vec3.prototype.clone
*/
v.clone();
/**
* @see goog.math.Vec3.prototype.invert
*/
v.invert();
/**
* @see goog.math.Vec3.prototype.magnitude
*/
v.magnitude();
/**
* Normalize the vector. The goog.math.Vec3.prototype.normalize
* did not check on a magnitude of 0 resulting in an error.
*
* @return {!X.vector|!goog.math.Vec3} The normalized vector.
*/
var normalize = v.normalize();
/**
* @see goog.math.Vec3.prototype.scale
*/
v.scale();
/**
* @see goog.math.Vec3.prototype.subtract
*/
v.subtract();
/**
* @see goog.math.Vec3.cross
*/
X.vector.cross();
/**
* @see goog.math.Vec3.distance
*/
X.vector.distance();
/**
* @see goog.math.Vec3.dot
*/
X.vector.dot();
/**
* @see goog.math.Vec3.lerp
*/
X.vector.lerp();


CONSTRUCTORS
X.vector

PROPERTIES

GETTERS/SETTERS
xx
yy
zz

FUNCTIONS
add
clone
invert
magnitude
normalize
scale
subtract

STATIC
cross
distance
dot
lerp



SOURCECODE