Class Collision

java.lang.Object
  |
  +--Collision

public class Collision
extends java.lang.Object

Objects of this instance holds the 2 object which should collide with each other, with the normalvector on the first object

Since:
1.0
Version:
$Revision: 1.2 $
Author:
Hans Dollen, Wim Fikkert

Constructor Summary
Collision(java.lang.Object _oObject1, java.lang.Object _oObject2, CollisionLine2D _oLine)
          Constructor, set values
 
Method Summary
 java.lang.Object getFirstObject()
          Returns the first object
 CollisionLine2D getLine()
          Returns the normal line
 java.lang.Object getSecondObject()
          Returns the second object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Collision

public Collision(java.lang.Object _oObject1,
                 java.lang.Object _oObject2,
                 CollisionLine2D _oLine)
Constructor, set values

Parameters:
_oObject1 - the object to which object 2 collides with
_oObject2 - the colliding object
_oLine - the normal vector on object 1
Since:
1.0
Method Detail

getFirstObject

public java.lang.Object getFirstObject()
Returns the first object

Returns:
Object
Since:
1.0

getSecondObject

public java.lang.Object getSecondObject()
Returns the second object

Returns:
Object
Since:
1.0

getLine

public CollisionLine2D getLine()
Returns the normal line

Returns:
CollisionLine2D
Since:
1.0