es.upv.dsic.gti_ia.jgomas
Class Vector3D

java.lang.Object
  extended by es.upv.dsic.gti_ia.jgomas.Vector3D

public class Vector3D
extends java.lang.Object


Field Summary
 double x
           
 double y
           
 double z
           
 
Constructor Summary
Vector3D()
           
Vector3D(double _x, double _y, double _z)
           
Vector3D(Vector3D v)
           
 
Method Summary
 void add(Vector3D v)
           
 double dot(Vector3D v)
           
 double length()
           
 void normalize()
           
 void print(java.lang.String name)
           
 void sub(Vector3D v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public double x

y

public double y

z

public double z
Constructor Detail

Vector3D

public Vector3D()

Vector3D

public Vector3D(Vector3D v)

Vector3D

public Vector3D(double _x,
                double _y,
                double _z)
Method Detail

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)