vec_math
Class vector3D
java.lang.Object
vec_math.VectorG
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
| 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 |
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.
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