public class ProximityScan
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
this class represent a single scan value of the proximity scanner. Data is as follows:
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ProximityScan(Vector pos,
Vector speed,
double timeOfScan) |
Modifier and Type | Method and Description |
---|---|
Vector |
predict(double time)
This method can be used to extrapolate a projectile's path linearly.
|
public final Vector pos
public final Vector speed
public final double timeOfScan
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