-
-
Creates new Vertex object
Parameters:
| Name |
Type |
Argument |
Description |
x |
number
|
<optional>
|
x coordinat (real) |
y |
number
|
<optional>
|
z coordinat (real) |
z |
number
|
<optional>
|
z coordinat (real) |
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 643
Returns:
new Vertex objects
-
Type
-
Raphael3d.Vertex
-
-
Returns new Vertex object from given Vector3 object
Parameters:
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 806
Returns:
new Vertex object
-
Type
-
Raphael3d.Vertex
-
computeDistFromFace(f, updateFace) → {number}
-
Computes distance from receiver to passed face (assuming face is planar)
Parameters:
| Name |
Type |
Description |
f |
Raphael3d.Face
|
face whose distance will be computed |
updateFace |
boolean
|
update face before computation |
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 764
Returns:
distance from receiver to given face
-
Type
-
number
-
computeDistFromVertex(v) → {number}
-
Computes distance from receiver to another Vertex or Vector3
Parameters:
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 786
Returns:
distance from receiver to given point
-
Type
-
number
-
computeSqrDistFromVertex(v) → {number}
-
Computes squared distance from receiver to another Vertex or Vector3
Parameters:
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 777
Returns:
squared distance from receiver to given point
-
Type
-
number
-
connectWith(v, paper, attrs) → {Raphael3d.Edge}
-
Returns existing edge between receiver and v, or creates new Edge and returns it
Parameters:
| Name |
Type |
Argument |
Description |
v |
Raphael3d.Vertex
|
|
vertex to be connected |
paper |
Raphael.Paper
|
|
paper instance |
attrs |
Object
|
<optional>
|
attrs to be passed to Edge constructor |
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 751
Returns:
existing or newly created Edge between receiver and v
-
Type
-
Raphael3d.Edge
-
-
Copies coordinates from given Vector3 object to receiver, returns modified receiver
Parameters:
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 794
Returns:
modified receiver
-
Type
-
Raphael3d.Vertex
-
giveCommonEdgeWith(v) → {Raphael3d.Edge|null}
-
Gives common edge with given Vertex
Parameters:
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 734
Returns:
common edge if exists, null otherwise
-
Type
-
Raphael3d.Edge
|
null
-
-
Gives array of neighbors of receiver (connected with edges)
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 706
Returns:
array on neighboring vertices
-
Type
-
Array.<Raphael3d.Vertex>
-
isNeighborOf(v) → {boolean}
-
Checks if receiver is neighbor of given Vertex
Parameters:
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 719
Returns:
true if receiver and v are neighbors, false otherwise
-
Type
-
boolean
-
project(m)
-
Project receiver according to given matrix (i.e. does not change real coordinates, only Vertex.projected attribute)
Parameters:
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 685
-
-
Transforms receiver according to given matrix (i.e. change real coordinates of receiver)
Parameters:
- Source:
-
/var/www/html/software/raphael3d/raphael3d.src.js, line 663