es.upv.dsic.gti_ia.jgomas
Class Vector3D
java.lang.Object
es.upv.dsic.gti_ia.jgomas.Vector3D
public class Vector3D
- extends java.lang.Object
Field Summary |
double |
x
|
double |
y
|
double |
z
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
x
public double x
y
public double y
z
public double z
Vector3D
public Vector3D()
Vector3D
public Vector3D(Vector3D v)
Vector3D
public Vector3D(double _x,
double _y,
double _z)
length
public double length()
add
public void add(Vector3D v)
sub
public void sub(Vector3D v)
dot
public double dot(Vector3D v)
normalize
public void normalize()
print
public void print(java.lang.String name)