public final class PyramidalField extends Object implements IFieldOfView
IFieldOfView
,
Serialized FormConstructor 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 IFieldOfView
direction
- the direction vectorpublic boolean isInTheField(Vector3D direction)
isInTheField
in interface IFieldOfView
direction
- a direction vectorpublic String getName()
getName
in interface IFieldOfView
public Vector3D[] getSideAxis()
Copyright © 2020 CNES. All rights reserved.