|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sirius.patrius.fieldsofview.RectangleField
public class RectangleField
This class describes a field of view defined by a rectangle cone, to be used in "instruments" part properties. It implements the IFieldOfView interface and so provides the associated services.
IFieldOfView
,
FieldAngularFace
Constructor Summary | |
---|---|
RectangleField(String name,
Vector3D mainDirection,
Vector3D approximativeU,
double angularApertureU,
double angularApertureV)
Constructor for a field of view defined by a rectangle cone. |
Method Summary | |
---|---|
double |
getAngularDistance(Vector3D direction)
Computes the angular distance between a vector and the border of the field. |
String |
getName()
|
Vector3D |
getU()
Get the U axis |
Vector3D |
getV()
Get the V axis |
Vector3D |
getW()
Get the W axis. |
boolean |
isInTheField(Vector3D direction)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RectangleField(String name, Vector3D mainDirection, Vector3D approximativeU, double angularApertureU, double angularApertureV)
name
- the name of the fieldmainDirection
- the main direction of the rectangle coneapproximativeU
- : defines the U vector of the local frame of the rectangle cone (will be corrected
to be orthogonal to the main direction vector). Can't be parallel to the main direction vector.angularApertureU
- the angular aperture in U direction : must be strictly between 0 and PIangularApertureV
- the angular aperture in V direction : must be strictly between 0 and PIMethod Detail |
---|
public Vector3D getU()
public Vector3D getV()
public Vector3D getW()
public double getAngularDistance(Vector3D direction)
getAngularDistance
in interface IFieldOfView
direction
- the direction vector
public boolean isInTheField(Vector3D direction)
isInTheField
in interface IFieldOfView
direction
- a direction vector
public String getName()
getName
in interface IFieldOfView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |