fr.cnes.sirius.patrius.fieldsofview
Interface IFieldOfView

All Known Implementing Classes:
AzimuthElevationField, BooleanField, CircularField, EllipticField, InvertField, OmnidirectionalField, PyramidalField, RectangleField, SectorField

public interface IFieldOfView

This is the interface for all the field of view (circular, elliptic...). All of them can compute the angular distance to a given direction (Vector3D).

Since:
1.2
Version:
$Id: IFieldOfView.java 6322 2012-09-20 15:51:39Z CardosoP $
Author:
Thomas Trapier

Method Summary
 double getAngularDistance(Vector3D direction)
          Computes the angular distance between a vector and the border of the field.
 String getName()
           
 boolean isInTheField(Vector3D direction)
           
 

Method Detail

getAngularDistance

double getAngularDistance(Vector3D direction)
Computes the angular distance between a vector and the border of the field. The result is positive if the direction is in the field, negative otherwise. For some of the fields (ComplexField), that value can be approximative : see particular javadoc of each class.

Parameters:
direction - the direction vector
Returns:
the angular distance

isInTheField

boolean isInTheField(Vector3D direction)
Parameters:
direction - a direction vector
Returns:
true if the direction is in the field

getName

String getName()
Returns:
the name of the field


Copyright © 2016 CNES. All Rights Reserved.