public final class EllipticField extends Object implements IFieldOfView
IFieldOfView,
Serialized Form| 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 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 IFieldOfViewCopyright © 2021 CNES. All rights reserved.