gravsphcolldemo
Class MakeAnimGif

java.lang.Object
  |
  +--gravsphcolldemo.MakeAnimGif
All Implemented Interfaces:
java.lang.Runnable

public class MakeAnimGif
extends java.lang.Object
implements java.lang.Runnable

This program produces an animated gif showing the simulation of spheres under gravity and elastic collision. It takes command line arguments. It outputs an estimate of the total running time to stdout, followed by an eoln character.


Constructor Summary
MakeAnimGif()
           
 
Method Summary
static void main(java.lang.String[] args)
          Command-line arguments: gifName: fileName String totalSimulationTime: double dt: double normal: Vector3D sampling period of OutputProjection: double xmin, xmax, ymin, ymax: doubles n: int -- number of Entities

And n times: position: Vector3D velocity: Vector3D mass: double radius: double colour: name or Vector3D
 void run()
          Calls phys.run(totalTime, dt), followed by phys.dispose().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MakeAnimGif

public MakeAnimGif()
Method Detail

main

public static void main(java.lang.String[] args)
Command-line arguments: gifName: fileName String totalSimulationTime: double dt: double normal: Vector3D sampling period of OutputProjection: double xmin, xmax, ymin, ymax: doubles n: int -- number of Entities

And n times: position: Vector3D velocity: Vector3D mass: double radius: double colour: name or Vector3D

run

public void run()
Calls phys.run(totalTime, dt), followed by phys.dispose().
Specified by:
run in interface java.lang.Runnable