Package | Description |
---|---|
graphicslib3D | |
graphicslib3D.shape |
Modifier and Type | Method and Description |
---|---|
Vertex3D |
Vertex3D.mult(Matrix3D mat)
Returns a new Vertex3D object which is a clone of this vertex but with a
Point3D location generated by multiplying this vertex's location by the
specified Matrix3D.
|
Modifier and Type | Method and Description |
---|---|
Point3D |
Vertex3D.add(Vertex3D v2)
Returns a new Point3D whose X,Y,Z values are the sum of this vertex's
location values and the specified vertex's location values.
|
Vector3D |
Vertex3D.cross(Vertex3D aVertex)
Returns a Vector3D which represents the vector formed by taking the cross
product of the vector implied by this vertex's X,Y,Z location with the
vector implied by the specified vertex's X,Y,Z location.
|
double |
Vertex3D.distanceTo(Vertex3D v2)
Returns a real number that is the distance between this vertex's location
and the specified vertex's location.
|
double |
Vertex3D.dot(Vertex3D v)
Returns the value of the "dot product" of the vector implied by this
vertex's X,Y,Z with the vector implied by the specified vertex's X,Y,Z.
|
Point3D |
Vertex3D.mid(Vertex3D v2)
Returns a new Point3D which is the midpoint between this vertex's
location and the specified vertex's location.
|
Point3D |
Vertex3D.minus(Vertex3D v2)
Returns a new Point3D whose X,Y,Z values are the difference between this
vertex's X,Y,Z location values and the specified vertex's X,Y,Z location
values.
|
Constructor and Description |
---|
Vector3D(Vertex3D aVertex)
Creates a new Vector3D implied by the location of the specified Vertex3D;
that is, a vector from the origin to the specified vertex's location.
|
Modifier and Type | Method and Description |
---|---|
Vertex3D[] |
Torus.getVertices()
Returns an array of
Vertex3D s defining this Torus . |
Vertex3D[] |
Sphere.getVertices()
Returns the array of vertices
|