public final class InvertField extends Object implements IFieldOfView
IFieldOfView,
Serialized Form| Constructor and Description |
|---|
InvertField(String name,
IFieldOfView invertedField)
Constructor of the invert field of a given one.
|
| 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 InvertField(String name, IFieldOfView invertedField)
name - the name of the new fieldinvertedField - the field to be invertedpublic double getAngularDistance(Vector3D direction)
getAngularDistance in interface IFieldOfViewdirection - the direction vectorpublic boolean isInTheField(Vector3D direction)
isInTheField in interface IFieldOfViewdirection - a direction vectorpublic String getName()
getName in interface IFieldOfViewCopyright © 2020 CNES. All rights reserved.