Package | Description |
---|---|
graphicslib3D | |
graphicslib3D.light |
Modifier and Type | Method and Description |
---|---|
Vector3D |
Vector3D.add(Vector3D v2)
Returns a new Vector3D whose X,Y,Z values are the sum of this Vector's
values and the specified Vector's values.
|
Vector3D |
Vertex3D.cross(Vector3D aVector)
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
specified vector.
|
Vector3D |
Vector3D.cross(Vector3D v)
Returns a new Vector3D which is the cross product of this vector with the
specified vector.
|
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.
|
Vector3D |
Vector3D.div(double theDivisor)
Returns a new Vector3D which is the result of dividing this vector by the
specified divisor; that is, a scaled copy of this vector.
|
Vector3D |
Vertex3D.getBinormal()
Returns the Vertex3D "binormal" vector.
|
Vector3D |
Matrix3D.getCol(int col)
Returns a new Vector3D containing in its XYZW fields
the values currently stored in the specified column
(0,1,2, or 3) of this matrix.
|
Vector3D |
Vertex3D.getNormal()
Returns a new Vector3D object whose magnitude and direction are the same
as the vertex normal of this vertex.
|
Vector3D |
Matrix3D.getRow(int row)
Returns a Vector3D containing in its XYZW fields
the values currently stored in the specified row
(0,1,2, or 3) of this matrix.
|
Vector3D |
Vertex3D.getTangent()
Returns the Vertex3D tangent vector.
|
Vector3D |
Vertex3D.getTangentSpaceLightVector()
Returns the Vertex3D tangent space light vector.
|
Vector3D |
Vector3D.minus(Vector3D v2)
Returns a new Vector3D whose X,Y,Z values are the difference between this
Vector's X,Y,Z and the specified Vector's X,Y,Z.
|
Vector3D |
Vector3D.mult(double theMultiplier)
Returns a new Vector3D which is the result of multiplying this vector by
the specified multiplier; that is, a scaled copy of this vector.
|
Vector3D |
Vector3D.mult(Matrix3D mat)
Returns a new Vector3D which is the result of multiplying this Vector by
the given matrix.
|
Vector3D |
Quaternion.mult(Vector3D vec)
Multiply this Quaternion by a vec, and return the new Vector3D.
|
Vector3D |
Vector3D.normalize()
Returns a new Vector3D with the same direction as this vector but with a
length of 1.
|
Vector3D |
Quaternion.pivot(Vector3D vec,
Point3D about)
Pivot a vector about a point using the rotation defined by this quaternion.
|
Vector3D |
Quaternion.rotate(Vector3D v)
|
Modifier and Type | Method and Description |
---|---|
Vector3D |
Vector3D.add(Vector3D v2)
Returns a new Vector3D whose X,Y,Z values are the sum of this Vector's
values and the specified Vector's values.
|
Vector3D |
Vertex3D.cross(Vector3D aVector)
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
specified vector.
|
Vector3D |
Vector3D.cross(Vector3D v)
Returns a new Vector3D which is the cross product of this vector with the
specified vector.
|
double |
Vector3D.dot(Vector3D v)
Returns the value of the "dot product" of this Vector with and the
specified vector.
|
boolean |
Vector3D.equals(Vector3D other)
|
void |
Vector3D.interpolate(Vector3D finalVec,
float changeAmnt)
Sets this
Vector3D to the interpolation by changeAmnt from this to the
the specified finalVec; that is, changes the values in this Vector3D as
follows: |
Vector3D |
Vector3D.minus(Vector3D v2)
Returns a new Vector3D whose X,Y,Z values are the difference between this
Vector's X,Y,Z and the specified Vector's X,Y,Z.
|
Vector3D |
Quaternion.mult(Vector3D vec)
Multiply this Quaternion by a vec, and return the new Vector3D.
|
Vector3D |
Quaternion.pivot(Vector3D vec,
Point3D about)
Pivot a vector about a point using the rotation defined by this quaternion.
|
void |
Shape3D.rotate(double angle,
Vector3D axis)
Concatenates onto this shape's rotation transformation matrix a
rotation of
angle
degrees about the specified axis . |
void |
Matrix3D.rotate(double degrees,
Vector3D axis)
Concatenates onto this matrix a rotation of
degrees
about the specified axis. |
Vector3D |
Quaternion.rotate(Vector3D v)
|
void |
Vertex3D.setBinormal(Vector3D newBinormal)
Sets the binormal (also sometimes called "bitangent")
of this Vertex3D to a new Vector3D object which is
a clone of the specified Vector3D object.
|
void |
Matrix3D.setCol(int col,
Vector3D vector)
Sets the specified column of this matrix to the
XYZW values of the specified vector.
|
void |
Vertex3D.setNormal(Vector3D newNormal)
Sets the vertex normal of this Vertex3D to a new Vector3D object which is
a clone of the specified Vector3D object.
|
void |
Matrix3D.setRow(int row,
Vector3D vector)
Sets the specified row of this matrix to the
XYZW values of the specified vector.
|
void |
Vertex3D.setTangent(Vector3D newTangent)
Sets the tangent of this Vertex3D to a new Vector3D object which is
a clone of the specified Vector3D object.
|
void |
Vertex3D.setTangentSpaceLightVector(Vector3D newVector)
Sets the Vertex3D tangent space light vector to the specified vector.
|
Constructor and Description |
---|
Matrix3D(double degrees,
Vector3D axis)
Creates a new Matrix3D containing the rotation transformation equivalent
to a rotation of the specified angle (in degrees) about the specified
axis.
|
Point3D(Vector3D vec)
|
Quaternion(double angle,
Vector3D axis)
Constructs a quaternion representing an orientation specified by an angle
of rotation and a
Vector3D giving the axis of rotation. |
Modifier and Type | Method and Description |
---|---|
Vector3D |
SpotLight.getDirection()
Returns a
Vector3D giving the direction attribute of this
SpotLight . |
Vector3D |
DistantLight.getDirection()
Returns a
Vector3D giving the direction of this DistantLight . |
Modifier and Type | Method and Description |
---|---|
void |
SpotLight.setDirection(Vector3D dir)
Sets the direction of the cone constraining the
SpotLight to the values specified
by the provided Vector3D . |
void |
DistantLight.setDirection(Vector3D dir)
Sets the direction of this
DistantLight to the direction
of the specified Vector3D . |