new Vector3d(x, y, z)
a generic 3D Vector Object
Parameters:
Name  Type  Argument  Default  Description 

x 
Number 
<optional> 
0  x value of the vector 
y 
Number 
<optional> 
0  y value of the vector 
z 
Number 
<optional> 
0  z value of the vector 
 Source:
 vector3.js, line 18
Extends
Classes
Members

<static> x :Number

x value of the vector
Type:
 Number
 Source:
 vector3.js, line 52

<static> y :Number

y value of the vector
Type:
 Number
 Source:
 vector3.js, line 61

<static> z :Number

z value of the vector
Type:
 Number
 Source:
 vector3.js, line 70
Methods

<static> abs() → {me.Vector3d}

Update this vector values to absolute values
 Source:
 vector3.js, line 191
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> add(v) → {me.Vector3d}

Add the passed vector to this vector
Parameters:
Name Type Description v
me.Vector2d  me.Vector3d  Source:
 vector3.js, line 105
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> angle(v) → {Number}

return the angle between this vector and the passed one
Parameters:
Name Type Description v
me.Vector2d  me.Vector3d  Source:
 vector3.js, line 448
Returns:
angle in radians Type
 Number

<static> ceil() → {me.Vector3d}

Ceil the vector values
 Source:
 vector3.js, line 276
Returns:
new me.Vector3d Type
 me.Vector3d

<static> ceilSelf() → {me.Vector3d}

Ceil this vector values
 Source:
 vector3.js, line 287
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> clamp(low, high) → {me.Vector3d}

Clamp the vector value within the specified value range
Parameters:
Name Type Description low
Number high
Number  Source:
 vector3.js, line 202
Returns:
new me.Vector3d Type
 me.Vector3d

<static> clampSelf(low, high) → {me.Vector3d}

Clamp this vector value within the specified value range
Parameters:
Name Type Description low
Number high
Number  Source:
 vector3.js, line 215
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> clone() → {me.Vector3d}

return a clone copy of this vector
 Source:
 vector3.js, line 485
Returns:
new me.Vector3d Type
 me.Vector3d

<static> copy(v) → {me.Vector3d}

Copy the x,y values of the passed vector to this one
Parameters:
Name Type Description v
me.Vector2d  me.Vector3d  Source:
 vector3.js, line 320
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> distance(v) → {Number}

return the distance between this vector and the passed one
Parameters:
Name Type Description v
me.Vector2d  me.Vector3d  Source:
 vector3.js, line 435
Returns:
 Type
 Number

<static> div(value) → {me.Vector3d}

Divide this vector values by the passed value
Parameters:
Name Type Description value
Number  Source:
 vector3.js, line 179
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> dotProduct(v) → {Number}

return the dot product of this vector and the passed one
Parameters:
Name Type Description v
me.Vector2d  me.Vector3d  Source:
 vector3.js, line 385
Returns:
The dot product. Type
 Number

<static> equals(v) → {Boolean}

return true if the two vectors are the same
Parameters:
Name Type Description v
me.Vector2d  me.Vector3d  Source:
 vector3.js, line 332
Returns:
 Type
 Boolean

<static> floor() → {me.Vector3d}

Floor the vector values
 Source:
 vector3.js, line 254
Returns:
new me.Vector3d Type
 me.Vector3d

<static> floorSelf() → {me.Vector3d}

Floor this vector values
 Source:
 vector3.js, line 265
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> length() → {Number}

return the length (magnitude) of this vector
 Source:
 vector3.js, line 408
Returns:
the length of this vector Type
 Number

<static> length2() → {Number}

return the square length of this vector
 Source:
 vector3.js, line 397
Returns:
The length^2 of this vector. Type
 Number

<static> lerp(v, alpha) → {me.Vector3d}

Linearly interpolate between this vector and the given one.
Parameters:
Name Type Description v
me.Vector3d alpha
Number distance along the line (alpha = 0 will be this vector, and alpha = 1 will be the given one).  Source:
 vector3.js, line 419
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> maxV(v) → {me.Vector3d}

Update this vector with the maximum value between this and the passed vector
Parameters:
Name Type Description v
me.Vector2d  me.Vector3d  Source:
 vector3.js, line 241
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> minV(v) → {me.Vector3d}

Update this vector with the minimum value between this and the passed vector
Parameters:
Name Type Description v
me.Vector2d  me.Vector3d  Source:
 vector3.js, line 228
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> negate() → {me.Vector3d}

Negate the vector values
 Source:
 vector3.js, line 298
Returns:
new me.Vector3d Type
 me.Vector3d

<static> negateSelf() → {me.Vector3d}

Negate this vector values
 Source:
 vector3.js, line 309
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> normalize() → {me.Vector3d}

normalize this vector (scale the vector so that its magnitude is 1)
 Source:
 vector3.js, line 344
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> perp() → {me.Vector3d}

change this vector to be perpendicular to what it was before.
(Effectively rotates it 90 degrees in a clockwise direction around the z axis) Source:
 vector3.js, line 359
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> project(v) → {me.Vector3d}

project this vector on to another vector.
Parameters:
Name Type Description v
me.Vector2d  me.Vector3d The vector to project onto.  Source:
 vector3.js, line 460
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> projectN(v) → {me.Vector3d}

Project this vector onto a vector of unit length.
This is slightly more efficient than `project` when dealing with unit vectors.Parameters:
Name Type Description v
me.Vector2d  me.Vector3d The unit vector to project onto.  Source:
 vector3.js, line 472
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> rotate(angle) → {me.Vector3d}

Rotate this vector (counterclockwise) by the specified angle (in radians) around the z axis
Parameters:
Name Type Description angle
number The angle to rotate (in radians)  Source:
 vector3.js, line 371
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> scale(x, y, z) → {me.Vector3d}

Multiply this vector values by the given scalar
Parameters:
Name Type Argument Default Description x
Number y
Number <optional>
x z
Number <optional>
x  Source:
 vector3.js, line 129
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> scaleV(v) → {me.Vector3d}

Multiply this vector values by the passed vector
Parameters:
Name Type Description v
me.Vector2d  me.Vector3d  Source:
 vector3.js, line 145
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> set(x, y, z) → {me.Vector3d}

set the Vector x and y properties to the given values
Parameters:
Name Type Description x
Number y
Number z
Number  Source:
 vector3.js, line 35
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> setV(v) → {me.Vector3d}

set the Vector x and y properties using the passed vector
Parameters:
Name Type Description v
me.Vector2d  me.Vector3d  Source:
 vector3.js, line 93
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> setZero() → {me.Vector3d}

set the Vector x and y properties to 0
 Source:
 vector3.js, line 82
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> sub(v) → {me.Vector3d}

Substract the passed vector to this vector
Parameters:
Name Type Description v
me.Vector2d  me.Vector3d  Source:
 vector3.js, line 117
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> to2d() → {me.Vector3d}

Convert this vector into 2d coordinate space
 Source:
 vector3.js, line 168
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> toIso() → {me.Vector3d}

Convert this vector into isometric coordinate space
 Source:
 vector3.js, line 157
Returns:
Reference to this object for method chaining Type
 me.Vector3d

<static> toString() → {String}

convert the object to a string representation
 Source:
 vector3.js, line 496
Returns:
 Type
 String