kaleido
Class Vector3D
java.lang.Object
kaleido.Vector3D
public class Vector3D
- extends Object
Class Vector3D
- Version:
- $Id: Vector3D.java,v 1.74 2007/02/09 20:08:54 rl Exp $
- Author:
- Zvi Har’El
- See Also:
- Class source code
|
Field Summary |
(package private) double |
x
|
private static Vector3D[] |
xyz
|
(package private) double |
y
|
(package private) double |
z
|
|
Constructor Summary |
Vector3D(double x,
double y,
double z)
|
|
Method Summary |
(package private) Vector3D |
add(Vector3D a)
|
(package private) Vector3D |
cross(Vector3D a)
|
(package private) double |
dot(Vector3D a)
|
(package private) static Vector3D |
pole(double r,
Vector3D a,
Vector3D b,
Vector3D c)
Compute the polar reciprocal of the plane containing a, b and c. |
(package private) static void |
rotArray(Vector3D[] v,
Vector3D[] u,
double azimuth,
double elevation,
double angle)
rotates an array of vectors. |
(package private) Vector3D |
rotate(Vector3D axis,
double angle)
|
(package private) boolean |
same(Vector3D a,
double epsilon)
|
(package private) Vector3D |
scale(double k)
|
(package private) Vector3D |
sub(Vector3D a)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
double x
y
double y
z
double z
xyz
private static final Vector3D[] xyz
Vector3D
Vector3D(double x,
double y,
double z)
add
Vector3D add(Vector3D a)
sub
Vector3D sub(Vector3D a)
scale
Vector3D scale(double k)
dot
double dot(Vector3D a)
cross
Vector3D cross(Vector3D a)
rotate
Vector3D rotate(Vector3D axis,
double angle)
rotArray
static void rotArray(Vector3D[] v,
Vector3D[] u,
double azimuth,
double elevation,
double angle)
- rotates an array of vectors.
same
boolean same(Vector3D a,
double epsilon)
pole
static Vector3D pole(double r,
Vector3D a,
Vector3D b,
Vector3D c)
- Compute the polar reciprocal of the plane containing a, b and c.
If this plane does not contain the origin, return p such that
dot(p,a) = dot(p,b) = dot(p,b) = r.
Otherwise, return p such that
dot(p,a) = dot(p,b) = dot(p,c) = 0
and
dot(p,p) = 1.
Copyright ©
Zvi Har’El
$Date: 2007/10/15 13:50:30$