Vector3D for EaselJS adds AS3 like Vector3D class to EaselJS. You can use Matrix3D for EaselJS if you want.
var v1 = new createjs.Vector3D(10, 10, 10);
var v2 = new createjs.Vector3D(-5, -5, -5);
v1.normalize();
v2.normalize();
var dotProduct = v1.dotProduct(v2);
console.log(dotProduct); // -1
- length [read only]
- lengthSquared [read only]
- w
- x
- y
- z
- add
- angleBetween [static]
- clone
- copyFrom
- crossProduct
- decrementBy
- distance [static]
- dotProduct
- equals
- incrementBy
- nearEquals
- negate
- normalize
- project
- scaleBy
- setTo
- subtract
- toString
- More information and samples at the kudox.jp
- Read the AS3 API Documentation, because API is similar to AS3.
public domain