 class wolf.Collision
 
     # Create a collision object.
-    #
-    # @param element1 {Object}
-    # @param element2 {Object}
     constructor : (element1, element2) ->
         @element1 = element1
         @element2 = element2


    # Return the collision's contact normal vector, relative
    # to the first element in the collision.
    #
    # @return {Object}
    getContactNormal : () ->
        return @getRelativeVelocity().normalize()
        
    # Return the seperating velocity of the two elements.
    getSeperatingVelocity : () ->
        return @getRelativeVelocity().dotProduct(@getContactNormal())

                collisions.push(c) if c
        return collisions

    # Return a collision if the two elements are colliding, null
    # otherwise.
    detectCollision : (e1, e2) ->
        #FIXME: add an error of margin
