|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.cnes.sirius.patrius.fieldsofview.BooleanField
public final class BooleanField
This class describes a boolean field of view that combines two existing fields with a "AND" or "OR" boolean combination.
IFieldOfView
Nested Class Summary | |
---|---|
static class |
BooleanField.BooleanCombination
The boolean combination to be applied |
Constructor Summary | |
---|---|
BooleanField(String name,
IFieldOfView firstField,
IFieldOfView secondField,
BooleanField.BooleanCombination booleanCombination)
Constructor for the "AND" or "OR" combined field of view |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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"Method Detail |
---|
public double getAngularDistance(Vector3D direction)
getAngularDistance
in interface IFieldOfView
direction
- the direction vector
public boolean isInTheField(Vector3D direction)
isInTheField
in interface IFieldOfView
direction
- a direction vector
public String getName()
getName
in interface IFieldOfView
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |