public class MagnetAnimator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
startTime |
Constructor and Description |
---|
MagnetAnimator() |
Modifier and Type | Method and Description |
---|---|
void |
run(Magnet m,
double now,
double inc)
Run one iteration of this animator
|
public void run(Magnet m, double now, double inc)
m
- The magnet to operate onnow
- What time is itinc
- How much time has elapsed since the last run call