public class ShootingRestrictions
extends java.lang.Object
implements java.io.Serializable
DeviceOrientation, DeviceCompassOrientation
,
Serialized FormModifier and Type | Field and Description |
---|---|
static double |
MAXIMUM_DISTANCE_SRC_TO_DST_DEFAULT |
static double |
OPENING_ANGLE_SHOOT_DEFAULT |
static double |
WIDTH_SHOOT_DEFAULT |
Constructor and Description |
---|
ShootingRestrictions() |
ShootingRestrictions(double openingAngleShoot,
double widthShoot,
double maximumDistanceSrcToDst) |
Modifier and Type | Method and Description |
---|---|
double |
getMaximumDistanceSrcToDst() |
double |
getOpeningAngleShoot() |
double |
getWidthShoot() |
void |
setMaximumDistanceSrcToDst(double maximumDistanceSrcToDst) |
void |
setOpeningAngleShoot(double openingAngleShoot) |
void |
setWidthShoot(double widthShoot) |
public static final double OPENING_ANGLE_SHOOT_DEFAULT
public static final double WIDTH_SHOOT_DEFAULT
public static final double MAXIMUM_DISTANCE_SRC_TO_DST_DEFAULT
public ShootingRestrictions()
public ShootingRestrictions(double openingAngleShoot, double widthShoot, double maximumDistanceSrcToDst)
openingAngleShoot
- opening angle shoot: range -180 to 180 degrees
All destinations between the two orientation vector projected with an opening angle will be hit by the sourcewidthShoot
- width shoot in meters.
All destinations between the two parallel orientation vector projected by the shoot will be hit by the sourcemaximumDistanceSrcToDst
- maximum distance from source to destination in meterspublic double getOpeningAngleShoot()
public void setOpeningAngleShoot(double openingAngleShoot)
public double getWidthShoot()
public void setWidthShoot(double widthShoot)
public double getMaximumDistanceSrcToDst()
public void setMaximumDistanceSrcToDst(double maximumDistanceSrcToDst)