|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaim4.util.MotionMath
public class MotionMath
This class provides utility functions for calculating the motion of the vehicles.
| Method Summary | |
|---|---|
static double |
calcDuration(double v1,
double v2,
double accel)
Calculate the time it takes to accelerate (or decelerate) from the initial velocity to the end velocity. |
static double |
calcDuration(double v1,
double v2,
double accel,
double distance)
Calculate the time it takes to accelerate (or decelerate) from the initial velocity to the end velocity. |
static double |
calcEndVelocity(double v1,
double accel,
double dist)
Calculate the velocity after accelerating for a given distance, starting with a given velocity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double calcEndVelocity(double v1,
double accel,
double dist)
v1 - the initial velocityaccel - the (constant) accelerationdist - the distance traveled
public static double calcDuration(double v1,
double v2,
double accel)
v1 - the initial velocityv2 - the end velocityaccel - the acceleration
public static double calcDuration(double v1,
double v2,
double accel,
double distance)
v1 - the initial velocityv2 - the end velocityaccel - the accelerationdistance - the distance traveled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||