|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnl.tudelft.pogamut.unreal.agent.module.shooting.util.FacingUtil
public class FacingUtil
Utilities to determine if a player is facing some location.
| Field Summary | |
|---|---|
static double |
IS_FACING_ANGLE
What angle is considered to be maximum facing angle by default (in degrees). |
| Constructor Summary | |
|---|---|
FacingUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
isFacing(AgentInfo info,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location)
Tells if the player is currently facing input location. |
static boolean |
isFacing(AgentInfo info,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location,
double angle)
Tells if the agent is currently facing input location. |
static boolean |
isFacing(cz.cuni.amis.pogamut.base3d.worldview.object.Location origin,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rotation,
cz.cuni.amis.pogamut.base3d.worldview.object.Location target,
double angle)
Tells you if the rotation at the origin is facing the target location. |
static boolean |
isFacing(Player player,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location)
Tells if the player is currently facing input location. |
static boolean |
isFacing(Player player,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location,
double angle)
Tells if the player is currently facing input location. |
static boolean |
isFacing2D(AgentInfo info,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location)
Tells if the player is currently facing input location. |
static boolean |
isFacing2D(AgentInfo info,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location,
double angle)
Tells if the agent is currently facing input location. |
static boolean |
isFacing2D(cz.cuni.amis.pogamut.base3d.worldview.object.Location origin,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rotation,
cz.cuni.amis.pogamut.base3d.worldview.object.Location target,
double angle)
Tells you if the rotation at the origin is facing the target location in the XY (horizontal) plane. |
static boolean |
isFacing2D(Player player,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location)
Tells if the player is currently facing input location. |
static boolean |
isFacing2D(Player player,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location,
double angle)
Tells if the player is currently facing input location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double IS_FACING_ANGLE
| Constructor Detail |
|---|
public FacingUtil()
| Method Detail |
|---|
public static boolean isFacing(AgentInfo info,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location)
player - the player:location - input location.
public static boolean isFacing(AgentInfo info,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location,
double angle)
player - the player:location - input location.angle - specifies maximum angle (in degrees) that will be still
considered as facing angle.
public static boolean isFacing(cz.cuni.amis.pogamut.base3d.worldview.object.Location origin,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rotation,
cz.cuni.amis.pogamut.base3d.worldview.object.Location target,
double angle)
origin - the location of the object that should be facingrotation - rotation of the object that should be facingtarget - what it should be facingangle - specifies maximum angle (in degrees) that will be still
considered as facing angle.
public static boolean isFacing(Player player,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location)
player - the player:location - input location.
public static boolean isFacing(Player player,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location,
double angle)
player - the player:location - input location.angle - specifies maximum angle (in degrees) that will be still
considered as facing angle.
public static boolean isFacing2D(AgentInfo info,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location)
player - the player:location - input location.
public static boolean isFacing2D(AgentInfo info,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location,
double angle)
player - the player:location - input location.angle - specifies maximum angle (in degrees) that will be still
considered as facing angle.
public static boolean isFacing2D(cz.cuni.amis.pogamut.base3d.worldview.object.Location origin,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rotation,
cz.cuni.amis.pogamut.base3d.worldview.object.Location target,
double angle)
origin - the location of the object that should be facingrotation - rotation of the object that should be facingtarget - what it should be facingangle - specifies maximum angle (in degrees) that will be still
considered as facing angle.
public static boolean isFacing2D(Player player,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location)
player - the player:location - input location.
public static boolean isFacing2D(Player player,
cz.cuni.amis.pogamut.base3d.worldview.object.ILocated location,
double angle)
player - the player:location - input location.angle - specifies maximum angle (in degrees) that will be still
considered as facing angle.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||