public class TargetDir extends DirectionVector
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TARGETDIR_TAG |
AXIS_TAG, FRAME_TAG, LATITUDE_TAG, LONGITUDE_TAG, ORIGIN_TAG, REF_TAG, ROTATE_TAG, ROTATION_ANGLE_TAG, ROTATION_AXIS_TAG, TARGET_TAG, UNITS_TAG, X_TAG, Y_TAG, Z_TAG
Constructor and Description |
---|
TargetDir()
Creates a targetDir Direction vector referenced to CG2Sun
Direction vectors can be defined by referencing to
direction vectors that were previously defined and
got a name assigned.
|
TargetDir(PointingElement pm) |
TargetDir(java.lang.String reference)
Creates a targetDir Direction vector referenced to another direction vector
Direction vectors can be defined by referencing to
direction vectors that were previously defined and
got a name assigned.
|
TargetDir(java.lang.String frame,
float longitude,
float latitude)
Creates a targetDir fixed direction vector expressed in spherical coordinates
For spherical coordinates the element must
contain the child elements
|
TargetDir(java.lang.String frame,
float x,
float y,
float z)
Creates a fixed targetDir direction vector expressed in cartesian coordinates
For cartesian coordinates the element must
contain the child elements
|
TargetDir(java.lang.String origin,
java.lang.String target)
Creates a targetDir direction vector based in Origin and Target
This representation is used to define a direction
vector from two state vectors.
|
TargetDir(java.lang.String axis,
java.lang.String rotationAxis,
float rotationAngle)
Creates a targetDir rotated Direction Vector
This representation allows to define a direction
vector by right-handed rotation of the direction
vector axis around rotationAxis by the angle
rotationAngle.
|
TargetDir(java.lang.String frame,
java.lang.String unitLongitude,
float longitude,
java.lang.String unitLatitude,
float latitude)
Creates a fixed targetDir direction vector expressed in spherical coordinates
For spherical coordinates the element must
contain the child elements
|
TargetDir(java.lang.String axis,
java.lang.String rotationAxis,
java.lang.String rotationAngleUnit,
float rotationAngle)
Creates a targetDir rotated Direction Vector
This representation allows to define a direction
vector by right-handed rotation of the direction
vector axis around rotationAxis by the angle
rotationAngle.
|
Modifier and Type | Method and Description |
---|---|
TargetDir |
copy() |
getAxis, getFrame, getLatitude, getLatitude, getLatitudeUnit, getLongitude, getLongitude, getLongitudeUnit, getOrigin, getReference, getRotationAngle, getRotationAngle, getRotationAngleUnit, getRotationAxis, getTarget, getUnit, getX, getY, getZ, setAxis, setBooleanField, setFloatArrayField, setFloatField, setFrame, setIntegerField, setLatitude, setLatitude, setLongitude, setLongitude, setOrigin, setReference, setRotationAngle, setRotationAngle, setRotationAxis, setStringField, setTarget, setUnit, setX, setY, setZ
addAttribute, addChild, asDataset, copyFrom, equals, getAttribute, getAttributes, getChild, getChildren, getDescription, getFirstLevelTextContent, getName, getValue, hasAttributtes, hasChildren, readFrom, regenerate, removeAttribute, removeAttribute, setDescription, setValue, toString, toStringParameter, toXml, validate
public TargetDir()
public TargetDir(java.lang.String frame, float longitude, float latitude)
frame
- The frame where this vector is expressed (SC,EME2000,CG)longitude
- Longitude expressed in deg.latitude
- Latitude expressed in deg.public TargetDir(PointingElement pm)
public TargetDir(java.lang.String reference)
reference
- Name of the referenced direction vectorpublic TargetDir(java.lang.String frame, float x, float y, float z)
frame
- The frame where this vector is expressed (SC,EME2000,CG)x
- The x component of this vectory
- The y component of this vectorz
- The z component of this vectorpublic TargetDir(java.lang.String frame, java.lang.String unitLongitude, float longitude, java.lang.String unitLatitude, float latitude)
frame
- The frame where this vector is expressed (SC,EME2000,CG)unitLongitude
- Unit in which the longitude is expressedlongitude
- LongitudeunitLatitude
- Unit in which the latitude is expressedlatitude
- Latitudepublic TargetDir(java.lang.String origin, java.lang.String target)
origin
- Origin State vectortarget
- Target State vectorpublic TargetDir(java.lang.String axis, java.lang.String rotationAxis, float rotationAngle)
axis
- The axis that this vector referencerotationAxis
- Rotation axis of the vectorrotationAngle
- Rotation angle. It must be expressed in deg.public TargetDir(java.lang.String axis, java.lang.String rotationAxis, java.lang.String rotationAngleUnit, float rotationAngle)
axis
- The axis that this vector referencerotationAxis
- Rotation axis of the vectorrotationAngleUnit
- Unit in which the angle of rotation is expressedrotationAngle
- Rotation anglepublic TargetDir copy()
copy
in class DirectionVector