java.lang.Objectjrobots.utils.ProximityScan
public class ProximityScan
The proximity scanner has only limited range, but it provides exact data about incoming projectiles and obstacles on the ground.
this class represent a single scan value of the proximity scanner. Data is as follows:
pos
,
speed
,
timeOfScan
,
ProximityScan(Vector, Vector, double)
,
predict(double)
,
Serialized FormField Summary | |
---|---|
Vector |
pos
position of the object at the scan's time |
Vector |
speed
velocity of the object at the scan's time |
double |
timeOfScan
The scan's time [s] |
Constructor Summary | |
---|---|
ProximityScan(Vector pos,
Vector speed,
double timeOfScan)
|
Method Summary | |
---|---|
Vector |
predict(double time)
This method can be used to extrapolate a projectile's path linearly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Vector pos
public final Vector speed
public final double timeOfScan
Constructor Detail |
---|
public ProximityScan(Vector pos, Vector speed, double timeOfScan)
Method Detail |
---|
public Vector predict(double time)
The given parameter specifies the time of interest (since the begin of the encounter)
time
- Where will the object be at that time? [s] (Time since the beginning of the match)
time