|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgame.motion.Stationary
public class Stationary
An object sitting still, with zero velocity and acceleration. This is the simplest of the three velocity classes.
| Constructor Summary | |
|---|---|
Stationary(lab4.Point origin)
|
|
Stationary(Trajectory old)
|
|
| Method Summary | |
|---|---|
lab4.Vector |
getCurrentAcceleration()
Current acceleration |
lab4.Point |
getCurrentLocation()
Current location |
lab4.Vector |
getCurrentVelocity()
Current velocity |
lab4.Point |
getLocation(Time t)
Location at a given time. |
Time |
getT0()
Time when this Trajectory began |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Stationary(Trajectory old)
public Stationary(lab4.Point origin)
| Method Detail |
|---|
public Time getT0()
Trajectory
getT0 in interface Trajectorypublic final lab4.Point getCurrentLocation()
Trajectory
getCurrentLocation in interface Trajectorypublic lab4.Point getLocation(Time t)
Trajectory
getLocation in interface Trajectoryt - time at which location should be computed, relative to time origin.
public lab4.Vector getCurrentVelocity()
Trajectory
getCurrentVelocity in interface Trajectorypublic lab4.Vector getCurrentAcceleration()
Trajectory
getCurrentAcceleration in interface Trajectory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||