org.jscience.astronomy.solarsystem.ephemeris
Class Vector3

java.lang.Object
  extended by org.jscience.astronomy.solarsystem.ephemeris.Vector3

public class Vector3
extends java.lang.Object

DOCUMENT ME!


Field Summary
 double x
          DOCUMENT ME!
 double y
          DOCUMENT ME!
 double z
          DOCUMENT ME!
 
Constructor Summary
Vector3()
          Creates a new Vector3 object.
Vector3(double d, double d1, double d2)
          Creates a new Vector3 object.
Vector3(Vector3 vector3)
          Creates a new Vector3 object.
 
Method Summary
static Vector3 add(Vector3 vector3, Vector3 vector3_1)
          DOCUMENT ME!
static Vector3 cross(Vector3 vector3, Vector3 vector3_1)
          DOCUMENT ME!
static double dot(Vector3 vector3, Vector3 vector3_1)
          DOCUMENT ME!
 double magnitude()
          DOCUMENT ME!
static Vector3 neg(Vector3 vector3)
          DOCUMENT ME!
 void normalize()
          DOCUMENT ME!
 void scale(double d)
          DOCUMENT ME!
 void set(double d, double d1, double d2)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public double x
DOCUMENT ME!


y

public double y
DOCUMENT ME!


z

public double z
DOCUMENT ME!

Constructor Detail

Vector3

public Vector3()
Creates a new Vector3 object.


Vector3

public Vector3(Vector3 vector3)
Creates a new Vector3 object.

Parameters:
vector3 - DOCUMENT ME!

Vector3

public Vector3(double d,
               double d1,
               double d2)
Creates a new Vector3 object.

Parameters:
d - DOCUMENT ME!
d1 - DOCUMENT ME!
d2 - DOCUMENT ME!
Method Detail

dot

public static double dot(Vector3 vector3,
                         Vector3 vector3_1)
DOCUMENT ME!

Parameters:
vector3 - DOCUMENT ME!
vector3_1 - DOCUMENT ME!
Returns:
DOCUMENT ME!

normalize

public void normalize()
DOCUMENT ME!


set

public void set(double d,
                double d1,
                double d2)
DOCUMENT ME!

Parameters:
d - DOCUMENT ME!
d1 - DOCUMENT ME!
d2 - DOCUMENT ME!

neg

public static Vector3 neg(Vector3 vector3)
DOCUMENT ME!

Parameters:
vector3 - DOCUMENT ME!
Returns:
DOCUMENT ME!

add

public static Vector3 add(Vector3 vector3,
                          Vector3 vector3_1)
DOCUMENT ME!

Parameters:
vector3 - DOCUMENT ME!
vector3_1 - DOCUMENT ME!
Returns:
DOCUMENT ME!

magnitude

public double magnitude()
DOCUMENT ME!

Returns:
DOCUMENT ME!

cross

public static Vector3 cross(Vector3 vector3,
                            Vector3 vector3_1)
DOCUMENT ME!

Parameters:
vector3 - DOCUMENT ME!
vector3_1 - DOCUMENT ME!
Returns:
DOCUMENT ME!

scale

public void scale(double d)
DOCUMENT ME!

Parameters:
d - DOCUMENT ME!