| Modifier and Type | Field and Description |
|---|---|
protected Coord3D |
_ref_coord
The reference coordinate
|
protected double[] |
_vec
The vector values
|
| Modifier | Constructor and Description |
|---|---|
protected |
Direction(BaseSRF srf,
Coord3D ref_coord,
double[] vec)
Constructor, requires an SRF, 3 reference coordinate values, and
3 direction values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyTo(Direction dir)
Copies the vector component values of this direction to the input direction.
|
protected Coord3D |
getInternalRefCoord()
Returns the actual reference coordinate object associated with the Direction
|
Coord3D |
getRefCoord()
Returns a clone (copy) of the reference coordinate object
|
BaseSRF |
getSRF()
Returns the SRF this Direction belongs to.
|
double[] |
getVec()
Returns the direction component values.
|
double |
getVectorComp(int n)
Return the values of the Nth direction vector component.
|
double |
getVectorComp1()
Return the values of the 1st vector component
|
double |
getVectorComp2()
Return the values of the 2nd direction vector component
|
double |
getVectorComp3()
Return the values of the 3rd direction vector component
|
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)
sets the direction vector component values
|
void |
setVectorComp(double comp1,
double comp2,
double comp3)
sets the values of the direction vector
|
void |
setVectorComp(int n,
double comp)
sets the value of the Nth component of direction vector
|
String |
toString()
Gets the reference coordinate associated with the
Returns the values of the vector as "[ val1, val2, val3 ]"
|
protected Coord3D _ref_coord
protected double[] _vec
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
SrmExceptionpublic void setVec(double[] vec)
throws SrmException
SrmExceptionpublic void setVectorComp(double comp1,
double comp2,
double comp3)
public void setVectorComp(int n,
double comp)
throws SrmException
SrmExceptionpublic void copyTo(Direction dir) throws SrmException
SrmExceptionpublic Direction makeClone() throws SrmException
SrmExceptionpublic boolean isEqual(Direction dir)
public String toString()
protected Coord3D getInternalRefCoord()
Copyright © 2013 SEDRIS. All Rights Reserved.