-
-
Returns sum of receiver and another Vector3
Parameters:
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 494
Returns:
sum of receiver and v
-
Type
-
Raphael3d.Vector3
-
-
Copy another Vector3 to receiver. Changes receiver
Parameters:
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 546
Returns:
changed receiver (now equal to v)
-
Type
-
Raphael3d.Vector3
-
-
Copy receiver
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 556
Returns:
copied receiver
-
Type
-
Raphael3d.Vector3
-
-
Returns cross product of receiver and another vector
Parameters:
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 525
Returns:
cross product of receiver and v
-
Type
-
Raphael3d.Vector3
-
dot(v) → {number}
-
Returns dot product of receiver and another vector
Parameters:
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 510
Returns:
dot product of receiver and v
-
Type
-
number
-
isEqualTo(v) → {boolean}
-
Checks equality of receiver with another Vector3
Parameters:
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 571
Returns:
true if receiver and v equals, false otherwise
-
Type
-
boolean
-
norm() → {number}
-
Returns (Euclidean) norm of receiver
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 517
Returns:
norm of receiver
-
Type
-
number
-
normalize()
-
Normalize receiver
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 535
-
-
Sets coordinates to receiver and returns it
Parameters:
Name |
Type |
Description |
x |
number
|
new x coordinate |
y |
number
|
new y coordinate |
z |
number
|
new z coordinate |
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 581
Returns:
changed receiver
-
Type
-
Raphael3d.Vector3
-
-
Returns difference of receiver and another Vector3
Parameters:
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 502
Returns:
difference of receiver and v
-
Type
-
Raphael3d.Vector3
-
toString() → {string}
-
Returns string representation of receiver
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 563
Returns:
copied receiver
-
Type
-
string
-
-
Creates new Vector3 instance
Parameters:
Name |
Type |
Argument |
Description |
x |
number
|
<optional>
|
x coordinate |
y |
number
|
<optional>
|
y coordinate |
z |
number
|
<optional>
|
z coordinate |
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 486
Returns:
-
Type
-
Raphael3d.Vector3
-
-
Returns unit Vector3 in x direction
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 592
Returns:
x unit vector
-
Type
-
Raphael3d.Vector3
-
-
Returns unit Vector3 in y direction
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 599
Returns:
y unit vector
-
Type
-
Raphael3d.Vector3
-
-
Returns unit Vector3 in z direction
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 606
Returns:
z unit vector
-
Type
-
Raphael3d.Vector3