|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.graphics3d.Vector3
Keeps a 3 dimensional vector.
Original ArcBall C code from Ken Shoemake, Graphics Gems IV, 1993.
Field Summary | |
double |
x
|
double |
y
|
double |
z
|
Constructor Summary | |
Vector3()
creates null vector |
|
Vector3(double x,
double y,
double z)
creates vector from x,y,z |
|
Vector3(Vector3 v)
creates vector from v |
Method Summary | |
Vector3 |
add(Vector3 v,
Vector3 r)
|
Vector3 |
bisect(Vector3 v,
Vector3 r)
|
Vector3 |
cross(Vector3 v,
Vector3 r)
|
double |
dot(Vector3 v)
|
double |
length()
|
Vector3 |
negate(Vector3 r)
|
Vector3 |
normalize(Vector3 r)
|
Vector3 |
scale(double s,
Vector3 r)
|
Vector3 |
set(double x,
double y,
double z)
|
Vector3 |
sub(Vector3 s,
Vector3 r)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public double x
public double y
public double z
Constructor Detail |
public Vector3(double x, double y, double z)
public Vector3()
public Vector3(Vector3 v)
Method Detail |
public String toString()
public double length()
public Vector3 normalize(Vector3 r)
public Vector3 scale(double s, Vector3 r)
public Vector3 sub(Vector3 s, Vector3 r)
public Vector3 add(Vector3 v, Vector3 r)
public Vector3 negate(Vector3 r)
public double dot(Vector3 v)
public Vector3 cross(Vector3 v, Vector3 r)
public Vector3 bisect(Vector3 v, Vector3 r)
public Vector3 set(double x, double y, double z)
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |