public final class EllipticField extends Object implements IFieldOfView
IFieldOfView
Constructor and Description |
---|
EllipticField(String name,
Vector3D origin,
Vector3D mainDirection,
Vector3D majorSemiAxisDirection,
double angleA,
double angleB)
Constructor for an elliptic 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) |
String |
toString()
Get a representation for this infinite oblique circular cone.
|
public EllipticField(String name, Vector3D origin, Vector3D mainDirection, Vector3D majorSemiAxisDirection, double angleA, double angleB)
name
- the name of the fieldorigin
- origin of the conemainDirection
- the direction defining the center of the fieldmajorSemiAxisDirection
- the direction defining the semi major axis of the fieldangleA
- the angular aperture along semi major axis (in rad)angleB
- the angular aperture along semi minor axis (in rad)IllegalArgumentException
- if the origin is not correctpublic 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 © 2018 CNES. All Rights Reserved.