|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jeospace.coordinate.Vector
org.jeospace.coordinate.Cartesian
An object that represents a 3 dimensional cartesian coordinate.
Axis,
CartesianConvention,
Length| Field Summary |
| Fields inherited from class org.jeospace.coordinate.Vector |
X, Y, Z |
| Constructor Summary | |
Cartesian()
Create a Cartesian coordinate object with default values. |
|
Cartesian(Cartesian cart)
Create a Cartesian coordinate object identical to the passed object. |
|
Cartesian(double[] value,
CartesianConvention conv,
Length scale)
Create a Cartesian coordinate object initialized with the given parameters. |
|
Cartesian(double[] value,
Length scale)
Create a Cartesian coordinate object initialized with the given parameters. |
|
Cartesian(double x,
double y,
double z,
CartesianConvention conv,
Length scale)
Create a Cartesian coordinate object initialized with the given parameters. |
|
Cartesian(double x,
double y,
double z,
Length scale)
Create a Cartesian coordinate object initialized with the given parameters. |
|
Cartesian(float[] value,
CartesianConvention conv,
Length scale)
Create a Cartesian coordinate object initialized with the given parameters. |
|
Cartesian(float[] value,
Length scale)
Create a Cartesian coordinate object initialized with the given parameters. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compare two Cartesian coordinate objects for equality. |
void |
get(CartesianConvention conv,
double[] value)
Get the double values for the coordinate points scaled by the Length object |
void |
get(CartesianConvention conv,
float[] value)
Get the float values for the coordinate points scaled by the Length object |
void |
get(CartesianConvention conv,
Length scalor,
double[] value)
Get the double values for the coordinate points scaled by the Length object |
void |
get(CartesianConvention conv,
Length scalor,
float[] value)
Get the float values for the coordinate points scaled by the Length object |
void |
get(Length scalor,
double[] value)
Get the double values for the coordinate points scaled by the Length object |
void |
get(Length scalor,
float[] value)
Get the float values for the coordinate points scaled by the Length object |
Length |
getMagnitude()
Get the magnitude of the coordinate's radius vector, adjusted for scale |
void |
getMagnitude(Length magnitude)
Get the magnitude of the coordinate's radius vector, adjusted for scale |
Length |
getScale()
Get the coordinate's scalor object |
int |
hashCode()
Calculate the hash code |
void |
set(Cartesian cart)
Set the values for the coordinate points and scalor |
void |
set(double[] value,
CartesianConvention conv,
Length scale)
Set the values for the coordinate points and scalor |
void |
set(double[] value,
Length scale)
Set the values for the coordinate points and scalor |
void |
set(double x,
double y,
double z,
CartesianConvention conv,
Length scale)
Set the values for the coordinate points and scalor |
void |
set(double x,
double y,
double z,
Length scale)
Set the values for the coordinate points and scalor |
void |
set(float[] value,
CartesianConvention conv,
Length scale)
Set the values for the coordinate points and scalor |
void |
set(float[] value,
Length scale)
Set the values for the coordinate points and scalor |
void |
setValues(Cartesian cart)
Set the values for the coordinate points while retaining the scalor of this Cartesian |
java.lang.String |
toString()
Return a string representation of this cartesian coordinate of the form "x, y, z". |
| Methods inherited from class org.jeospace.coordinate.Vector |
clear, cross, dot, get, get, get, get, magnitude, negate, negate, normalize, scale, set, set, set, set |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Cartesian()
Cartesian coordinate object with default values.
public Cartesian(double[] value,
CartesianConvention conv,
Length scale)
Cartesian coordinate object initialized with the given parameters.
value - the double array of values in X, Y, and Z axis orderconv - the orientation convention of the value parametersscale - the scalor value for the coordinate
public Cartesian(double[] value,
Length scale)
Cartesian coordinate object initialized with the given parameters.
value - the double array of values in X, Y, and Z axis orderscale - the scalor value for the coordinate
public Cartesian(float[] value,
CartesianConvention conv,
Length scale)
Cartesian coordinate object initialized with the given parameters.
value - the float array of values in X, Y, and Z axis orderconv - the orientation convention of the value parametersscale - the scalor value for the coordinate
public Cartesian(float[] value,
Length scale)
Cartesian coordinate object initialized with the given parameters.
value - the float array of values in X, Y, and Z axis orderscale - the scalor value for the coordinate
public Cartesian(double x,
double y,
double z,
CartesianConvention conv,
Length scale)
Cartesian coordinate object initialized with the given parameters.
x - the X axis valuey - the Y axis valuez - the Z axis valueconv - the orientation convention of the x, y, z parametersscale - the scalor value for the coordinate
public Cartesian(double x,
double y,
double z,
Length scale)
Cartesian coordinate object initialized with the given parameters.
x - the X axis valuey - the Y axis valuez - the Z axis valuescale - the scalor value for the coordinatepublic Cartesian(Cartesian cart)
Cartesian coordinate object identical to the passed object.
cart - the Cartesian coordinate object to duplicate| Method Detail |
public void set(Cartesian cart)
cart - the Cartesian object to duplicatepublic void setValues(Cartesian cart)
Cartesian
cart - the Cartesian object to duplicate
public void set(double x,
double y,
double z,
CartesianConvention conv,
Length scale)
x - the X axis valuey - the Y axis valuez - the Z axis valueconv - the orientation convention of the x, y, z parametersscale - the scalor value for the coordinate
public void set(double x,
double y,
double z,
Length scale)
x - the X axis valuey - the Y axis valuez - the Z axis valuescale - the scalor value for the coordinate
public void set(double[] value,
CartesianConvention conv,
Length scale)
value - the double array of values in X, Y, and Z axis orderconv - the orientation convention of the value parametersscale - the scalor value for the coordinate
public void set(double[] value,
Length scale)
value - the double array of values in X, Y, and Z axis orderscale - the scalor value for the coordinate
public void set(float[] value,
CartesianConvention conv,
Length scale)
value - the float array of values in X, Y, and Z axis orderconv - the orientation convention of the parameter valuesscale - the scalor value for the coordinate
public void set(float[] value,
Length scale)
value - the float array of values in X, Y, and Z axis orderscale - the scalor value for the coordinate
public void get(CartesianConvention conv,
double[] value)
Length object
conv - the orientation convention of the parameter valuesvalue - the double array to be initialized with the values
in X, Y, and Z axis order
public void get(CartesianConvention conv,
Length scalor,
double[] value)
Length object
conv - the orientation convention of the parameter valuesscalor - the scaling Length objectvalue - the double array to be initialized with the values
in X, Y, and Z axis order
public void get(Length scalor,
double[] value)
Length object
scalor - the scaling Length objectvalue - the double array to be initialized with the values
in X, Y, and Z axis order
public void get(CartesianConvention conv,
float[] value)
Length object
conv - the orientation convention of the parameter valuesvalue - the float array to be initialized with the values
in X, Y, and Z axis order
public void get(CartesianConvention conv,
Length scalor,
float[] value)
Length object
conv - the orientation convention of the parameter valuesscalor - the scaling Length objectvalue - the float array to be initialized with the values
in X, Y, and Z axis order
public void get(Length scalor,
float[] value)
Length object
scalor - the scaling Length objectvalue - the float array to be initialized with the values
in X, Y, and Z axis orderpublic Length getMagnitude()
public void getMagnitude(Length magnitude)
magnitude - the Length value for radius vectorpublic Length getScale()
Length object representing the coordinate's scalorpublic int hashCode()
hashCode in class Vectorpublic boolean equals(java.lang.Object obj)
Cartesian coordinate objects for equality. The result is
true if and only if the argument object is not null, is a
Cartesian coordinate object and represents an identical position
as this Cartesian coordinate object.
Two Cartesian coordinate objects are equal only if it's constituent
coordinate array, type and Length objects are equal.
equals in class Vectorobj - the object to compare with
true if the Cartesian coordinate objects are the same;
false otherwise.public java.lang.String toString()
toString in class Vector
|
Jeospace API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||