|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvec_math.VectorG
vec_math.Vector3D
public class Vector3D
This class is the definition of a simple, three dimensional vector. Additional features are provided to make its use easier to Nvector.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class vec_math.VectorG |
|---|
VectorG.CloneTest, VectorG.EuclidianMetric, VectorG.LengthComparator, VectorG.Metric |
| Field Summary | |
|---|---|
private static String[] |
NAMES
The names of the coorduinates. |
| Fields inherited from class vec_math.VectorG |
|---|
a |
| Constructor Summary | |
|---|---|
Vector3D()
Constructs a new 2D vector with its two components separated. |
|
Vector3D(double x,
double y,
double z)
Constructs a new 2D vector with its two components separated. |
|
Vector3D(String xy)
Constructs a new Vector2D from a string. |
|
| Method Summary | |
|---|---|
double |
getX()
Returns the x coordinate. |
double |
getY()
Returns the y coordinate. |
double |
getZ()
Returns the z coordinate. |
void |
setX(double x)
Sets the x value. |
void |
setY(double y)
Sets the y value. |
void |
setZ(double x)
Sets the x value. |
String |
toString()
Converts this 3D vector into a String. |
| 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 |
| Field Detail |
|---|
private static final String[] NAMES
| Constructor Detail |
|---|
public Vector3D()
public Vector3D(double x,
double y,
double z)
public Vector3D(String xy)
| Method Detail |
|---|
public double getX()
public double getY()
public double getZ()
public void setX(double x)
public void setY(double y)
public void setZ(double x)
public String toString()
toString in class VectorG
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||