public final class BooleanField extends Object implements IFieldOfView
IFieldOfView,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
BooleanField.BooleanCombination
The boolean combination to be applied
|
| Constructor and Description |
|---|
BooleanField(String name,
IFieldOfView firstField,
IFieldOfView secondField,
BooleanField.BooleanCombination booleanCombination)
Constructor for the "AND" or "OR" combined 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 BooleanField(String name, IFieldOfView firstField, IFieldOfView secondField, BooleanField.BooleanCombination booleanCombination)
name - the name of this fieldfirstField - the first field to be combinedsecondField - the second field to be combinedbooleanCombination - combination to be applied : "AND" or "OR"public 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.