public final class PyramidalField extends Object implements IFieldOfView
IFieldOfView,
Serialized Form| Constructor and Description |
|---|
PyramidalField(String name,
Vector3D[] directions)
Constructor for a pyramidal field of view.
|
| 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[] |
getSideAxis()
Get the side axis of the field of view.
|
boolean |
isInTheField(Vector3D direction) |
public PyramidalField(String name, Vector3D[] directions)
name - the name of the fielddirections - the directions defining the border of the field.
They must be given in the right order : from the vector i to the vector i + 1,
the inside of the field is on the side of the positive cross vector v(i) * v(i+1)public double getAngularDistance(Vector3D direction)
getAngularDistance in interface IFieldOfViewdirection - the direction vector (expressed in the topocentric coordinate system of the object)public boolean isInTheField(Vector3D direction)
isInTheField in interface IFieldOfViewdirection - a direction vector (expressed in the topocentric coordinate system of the object)public String getName()
getName in interface IFieldOfViewpublic Vector3D[] getSideAxis()
Copyright © 2021 CNES. All rights reserved.