public class SectorField extends Object implements IFieldOfView
This class defines a "sector" field of view. This field is a min/max longitude and min/max latitude aperture on the unit sphere. It is defined by three vectors : the local "north pole" vector for this sphere, the min latitude - min longitude point vector (V1) and the max latitude - max longitude point vector (V2).
IFieldOfView
Constructor and Description |
---|
SectorField(String name,
Vector3D vectorPole,
Vector3D vectorV1,
Vector3D vectorV2)
Constructor for the "sector" 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 SectorField(String name, Vector3D vectorPole, Vector3D vectorV1, Vector3D vectorV2)
name
- the name of the fieldvectorPole
- the local "north pole" direction on the unit sphere (will be normalized)vectorV1
- the min latitude - min longitude point vector on the unit sphere (will be normalized)vectorV2
- the max latitude - max longitude point vector on the unit sphere (will be normalized)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
Copyright © 2019 CNES. All Rights Reserved.