Package | Description |
---|---|
graphicslib3D | |
graphicslib3D.light |
Modifier and Type | Method and Description |
---|---|
Point3D |
Point3D.add(Point3D p2)
Returns a new Point3D whose X,Y,Z values
are the sum of this point's values and
the specified point's values.
|
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.
|
Point3D |
Vertex3D.div(double theDivisor)
Returns a new Point3D which is the result of dividing this vertex's X,Y,Z
location values by the given divisor.
|
Point3D |
Point3D.div(double theDivisor)
Returns a new Point3D which is the
result of dividing this point by the
given divisor.
|
Point3D |
Vertex3D.getLocation()
Returns a new Point3D object whose location is the same as the location
of this Vertex3D.
|
Point3D |
Point3D.mid(Point3D p2)
Returns a new Point3D which is
the midpoint between this point and the
specified point.
|
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 |
Point3D.minus(Point3D p2)
Returns a new Point3D whose X,Y,Z values are
the difference between this point's X,Y,Z
and the specified point's X,Y,Z.
|
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.
|
Point3D |
Vertex3D.mult(double theMultiplier)
Returns a new Point3D which is the result of multiplying this vertex's
X,Y,Z location values by the given multiplier.
|
Point3D |
Point3D.mult(double theMultiplier)
Returns a new Point3D which is the
result of multiplying this point by the
given multiplier.
|
Point3D |
Point3D.mult(Matrix3D mat)
Returns a new Point3D which is the result of
multiplying this point by the given matrix.
|
Point3D |
Quaternion.mult(Point3D point)
Rotate the point about this quaternion.
|
Point3D |
Quaternion.pivot(Point3D point,
Point3D about)
Overload of pivot(Vector3D, Point3D).
|
Modifier and Type | Method and Description |
---|---|
Point3D |
Point3D.add(Point3D p2)
Returns a new Point3D whose X,Y,Z values
are the sum of this point's values and
the specified point's values.
|
double |
Point3D.distanceTo(Point3D p2)
Returns a real number that is the distance
between this point and the specified point.
|
boolean |
Point3D.equals(Point3D other)
|
Point3D |
Point3D.mid(Point3D p2)
Returns a new Point3D which is
the midpoint between this point and the
specified point.
|
Point3D |
Point3D.minus(Point3D p2)
Returns a new Point3D whose X,Y,Z values are
the difference between this point's X,Y,Z
and the specified point's X,Y,Z.
|
Point3D |
Quaternion.mult(Point3D point)
Rotate the point about this quaternion.
|
Point3D |
Quaternion.pivot(Point3D point,
Point3D about)
Overload of pivot(Vector3D, Point3D).
|
Vector3D |
Quaternion.pivot(Vector3D vec,
Point3D about)
Pivot a vector about a point using the rotation defined by this quaternion.
|
void |
Vertex3D.setLocation(Point3D thePoint)
Sets the location of this Vertex3D object to be the same as the location
of the specified Point3D.
|
Constructor and Description |
---|
Vector3D(Point3D aPoint)
Creates a new Vector3D implied by the X,Y,Z values of the specified
Point3D; that is, a vector from the origin to the specified point.
|
Vertex3D(Point3D p)
Creates a new Vertex3D with the X,Y,Z, and W values specified by the
given Point3D.
|
Modifier and Type | Method and Description |
---|---|
Point3D |
PositionalLight.getPosition()
Returns a
Point3D giving the position attribute of this PositionalLight . |
Modifier and Type | Method and Description |
---|---|
void |
PositionalLight.setPosition(Point3D pos)
Sets the position of the
PositionalLight to the values specified
by the provided Point3D . |