public class RectangleField extends Object implements IFieldOfView
IFieldOfView
,
FieldAngularFace
Constructor and Description |
---|
RectangleField(String name,
Vector3D mainDirection,
Vector3D approximativeU,
double angularApertureU,
double angularApertureV)
Constructor for a field of view defined by a rectangle cone.
|
Modifier and Type | Method and Description |
---|---|
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) |
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 PIpublic Vector3D getU()
public Vector3D getV()
public Vector3D getW()
public double getAngularDistance(Vector3D direction)
getAngularDistance
in interface IFieldOfView
direction
- the direction vectorpublic boolean isInTheField(Vector3D direction)
isInTheField
in interface IFieldOfView
direction
- a direction vectorpublic String getName()
getName
in interface IFieldOfView
Copyright © 2019 CNES. All rights reserved.