|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.geography.coordinates.Direction
public class Direction
The Direction abstract contains a three element vector and a reference location.
BaseSRF_3D| Field Summary | |
|---|---|
protected Coord3D |
_ref_coord
|
protected double[] |
_vec
|
| Constructor Summary | |
|---|---|
protected |
Direction(BaseSRF srf,
Coord3D ref_coord,
double[] vec)
Constructor, requires an SRF, 3 reference coordinate values, and 3 direction values. |
| Method Summary | |
|---|---|
void |
copyTo(Direction dir)
Copies the vector component values of this direction to the input direction. |
protected Coord3D |
getInternalRefCoord()
|
Coord3D |
getRefCoord()
|
BaseSRF |
getSRF()
|
double[] |
getVec()
|
double |
getVectorComp(int n)
Return the values of the Nth direction vector component. |
double |
getVectorComp1()
|
double |
getVectorComp2()
|
double |
getVectorComp3()
|
boolean |
isEqual(Direction dir)
Returns TRUE if the Direction parameters are "Equal" |
Direction |
makeClone()
Returns the shallow copy of this object instance. |
void |
setVec(double[] vec)
|
void |
setVectorComp(double comp1,
double comp2,
double comp3)
|
void |
setVectorComp(int n,
double comp)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Coord3D _ref_coord
protected double[] _vec
| Constructor Detail |
|---|
protected Direction(BaseSRF srf,
Coord3D ref_coord,
double[] vec)
| Method Detail |
|---|
public BaseSRF getSRF()
public Coord3D getRefCoord()
throws SrmException
SrmExceptionpublic double[] getVec()
public double getVectorComp1()
public double getVectorComp2()
public double getVectorComp3()
public double getVectorComp(int n)
throws SrmException
SrmException
public void setVec(double[] vec)
throws SrmException
SrmException
public void setVectorComp(double comp1,
double comp2,
double comp3)
public void setVectorComp(int n,
double comp)
throws SrmException
SrmException
public void copyTo(Direction dir)
throws SrmException
SrmException
public Direction makeClone()
throws SrmException
SrmExceptionpublic boolean isEqual(Direction dir)
public java.lang.String toString()
toString in class java.lang.Objectprotected Coord3D getInternalRefCoord()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||