public final class PyramidalField extends Object implements IFieldOfView
IFieldOfView| 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() |
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)
IFieldOfViewgetAngularDistance in interface IFieldOfViewdirection - the direction vectorpublic boolean isInTheField(Vector3D direction)
isInTheField in interface IFieldOfViewdirection - a direction vectorpublic String getName()
getName in interface IFieldOfViewCopyright © 2017 CNES. All rights reserved.