public final class CircularField extends Object implements IFieldOfView
IFieldOfView
Constructor and Description |
---|
CircularField(String name,
double halfAngularAperture,
Vector3D mainDirection)
Constructor for a circular 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.
|
double |
getHalfAngularAperture()
Returns the half-aperture.
|
String |
getName() |
boolean |
isInTheField(Vector3D direction) |
public CircularField(String name, double halfAngularAperture, Vector3D mainDirection)
name
- the name of the fieldhalfAngularAperture
- the half angular aperture : must be strictly between 0 and PImainDirection
- the direction defining the center of the fieldpublic 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 double getHalfAngularAperture()
Copyright © 2019 CNES. All rights reserved.