de.grogra.ray2.radiosity
public class Vector3d extends Vector3d
| Modifier and Type | Class and Description |
|---|---|
class |
Vector3d.Theta
Pair of angles.
|
| Constructor and Description |
|---|
Vector3d()
Creates a new Vector3D.
|
Vector3d(double x,
double y,
double z)
A copy constructor.
|
Vector3d(Tuple3d v)
A copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3d.Theta |
calcRotationToZ()
Pre calculates the rotation around the z axis.
|
java.lang.Object |
clone() |
void |
rotateX(double sinTheta,
double cosTheta)
Rotates the vector around the x-axis.
|
void |
rotateY(double sinTheta,
double cosTheta)
Rotates the vector around the y-axis.
|
void |
rotateZ(double sinTheta,
double cosTheta)
Rotates the vector around the z-axis.
|
angle, cross, dot, length, lengthSquared, normalize, normalizeabsolute, absolute, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, epsilonEquals, equals, equals, get, get, get, hashCode, interpolate, interpolate, max, min, negate, negate, scale, scale, scaleAdd, scaleAdd, set, set, set, set, sub, sub, toStringpublic Vector3d()
public Vector3d(double x,
double y,
double z)
x - the x-coordinate.y - the y-coordinate.z - the z-coordinate.public Vector3d(Tuple3d v)
v - the vector to clone.public Vector3d.Theta calcRotationToZ()
public void rotateX(double sinTheta,
double cosTheta)
sinTheta - the sinus angle.cosTheta - the cosinus angle.public void rotateY(double sinTheta,
double cosTheta)
sinTheta - the sinus angle.cosTheta - the cosinus angle.public void rotateZ(double sinTheta,
double cosTheta)
sinTheta - the sinus angle.cosTheta - the cosinus angle.