vec_math
Class vector3D

java.lang.Object
  extended by vec_math.VectorG
      extended by vec_math.vector3D
All Implemented Interfaces:
Serializable, Cloneable

public class vector3D
extends VectorG

This class is the definition of a simple, two dimensional vector. Additional features are provided to make its use easier to Nvector.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class vec_math.VectorG
VectorG.CloneTest, VectorG.EuclidianMetric, VectorG.LengthComparator, VectorG.Metric
 
Field Summary
 
Fields inherited from class vec_math.VectorG
a
 
Constructor Summary
vector3D(double x, double y, double z)
          Constructs a new 2D vector with its two components separated.
 
Method Summary
 String toString()
          Converts this 3D vector into a String.
 double X()
          Returns the x coordinate.
 double Y()
          Returns the y coordinate.
 double Z()
          Returns the z coordinate.
 
Methods inherited from class vec_math.VectorG
add, clone, dimension, direct, directDivide, directMultiply, dot, doubleParse, equalData, equals, fillFrom, fillFrom, fromDoubles, fromString, get, getAsArray, getLength, hashCode, match, match, multiply, parse, search, searchMinMax, set, sort, sortToLength, subtract
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

vector3D

public vector3D(double x,
                double y,
                double z)
Constructs a new 2D vector with its two components separated. This version creates a new two dimensional array, so reuse of the arguments is safe.

Method Detail

X

public double X()
Returns the x coordinate.


Y

public double Y()
Returns the y coordinate.


Z

public double Z()
Returns the z coordinate.


toString

public String toString()
Converts this 3D vector into a String.

Overrides:
toString in class VectorG