net.jinx.physics
Class Contact
java.lang.Object
net.jinx.physics.Contact
- All Implemented Interfaces:
- java.lang.Comparable
public class Contact
- extends java.lang.Object
- implements java.lang.Comparable
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Contact
public Contact(PhysicalObject obj,
PhysicalObject collided,
float time,
float deltaTime,
Universe u)
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()