|
Usage myVec3d.subtract(x:Number, y:Number, z:Number) : Void myVec3d.subtract(vec3d:Vector3d) : Void Parameters x The amount to subtract from the x property of myVec3d. y The amount to subtract from the y property of myVec3d. z The amound to subtract from the z property of myVec3d. vec3d A Vector3d instance whose x, y and z properties should be subtracted from the x, y and z properties of myVec3d.
Returns Nothing Description Method; subtracts a 3d vector from this Vector3d, represented as either a Vector3d instance or x, y, z displacements. Example var vec1 = new Vector3d(4, 5, 6);
vec1.subtract(10, -5, 2.3);
trace(vec1); //displays (-6, 10, 3.7) |