net.jinx.physics
Class Contact

java.lang.Object
  extended by net.jinx.physics.Contact
All Implemented Interfaces:
java.lang.Comparable

public class Contact
extends java.lang.Object
implements java.lang.Comparable


Constructor Summary
Contact(PhysicalObject obj, PhysicalObject collided, float time, float deltaTime, Universe u)
           
 
Method Summary
 PhysicalObject collided()
           
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 Vector getCollidedVelocity()
           
 Vector getDeltaPosition()
           
 float getDeltaTime()
           
 Vector getDeltaVelocity()
           
 Vector getPosition()
           
 float getTime()
           
 Vector getVelocity()
           
 int hashCode()
           
 boolean isComplete()
           
 PhysicalObject object()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Contact

public Contact(PhysicalObject obj,
               PhysicalObject collided,
               float time,
               float deltaTime,
               Universe u)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getPosition

public Vector getPosition()

getVelocity

public Vector getVelocity()

getCollidedVelocity

public Vector getCollidedVelocity()

getDeltaPosition

public Vector getDeltaPosition()

getDeltaVelocity

public Vector getDeltaVelocity()

getTime

public float getTime()

getDeltaTime

public float getDeltaTime()

isComplete

public boolean isComplete()

object

public PhysicalObject object()

collided

public PhysicalObject collided()