public interface IVisibleObject
Modifier and Type | Method and Description |
---|---|
float |
getAge(float currentTime)
Returns the delta of current time passed and the last time this object was
seen
|
double |
getCollisionDistance() |
Angle |
getDirectionTo(IVisibleObject other)
Calculates the Direction of this visible object to the passed one
|
Angle |
getDirectionTo(org.apache.commons.math3.geometry.euclidean.threed.Vector3D other)
Calculates the global absolute Direction of this visible object to the
passed Vector3D
|
double |
getDistanceToXY(IVisibleObject other) |
double |
getDistanceToXY(org.apache.commons.math3.geometry.euclidean.threed.Vector3D other) |
double |
getDistanceToXYZ(IVisibleObject other)
Calculates the distance of this visible object to the passed one
|
double |
getDistanceToXYZ(org.apache.commons.math3.geometry.euclidean.threed.Vector3D other)
Calculates the distance of this visible object to the passed position
|
InformationSource |
getInformationSource() |
float |
getLastSeenTime() |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getLocalPosition()
Retrieves the local position of the visible object.
|
java.lang.String |
getName() |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getPosition() |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
getPreviousPosition() |
boolean |
isLaying()
Check if the object lies on the ground.
|
boolean |
isVisible() |
java.lang.String getName()
org.apache.commons.math3.geometry.euclidean.threed.Vector3D getPosition()
org.apache.commons.math3.geometry.euclidean.threed.Vector3D getPreviousPosition()
org.apache.commons.math3.geometry.euclidean.threed.Vector3D getLocalPosition()
float getLastSeenTime()
float getAge(float currentTime)
currentTime
- the current global timedouble getDistanceToXY(org.apache.commons.math3.geometry.euclidean.threed.Vector3D other)
other
- the point to which to calculatedouble getDistanceToXY(IVisibleObject other)
other
- the point to which to calculatedouble getDistanceToXYZ(IVisibleObject other)
other
- the object to which to calculate distancedouble getDistanceToXYZ(org.apache.commons.math3.geometry.euclidean.threed.Vector3D other)
other
- the position to which to calculate distanceAngle getDirectionTo(IVisibleObject other)
other
- the object to which to calculate directionAngle getDirectionTo(org.apache.commons.math3.geometry.euclidean.threed.Vector3D other)
other
- the Vector3D to which to calculate directionboolean isVisible()
double getCollisionDistance()
boolean isLaying()
InformationSource getInformationSource()