org.concord.collisions.engine
Interface CCMassive

All Known Implementing Classes:
JPartWorld, JWorldElement

public interface CCMassive

Author:
Dmitry Markman

Method Summary
 float getCMPointX()
          calculates X coordinate of center of mass
 float getCMPointY()
          calculates Y coordinate of center of mass
 float getMass()
           
 void setCMPointX(float x)
          set X coordinate of center of mass
 void setCMPointY(float y)
          set Y coordinate of center of mass
 

Method Detail

getMass

public float getMass()

getCMPointX

public float getCMPointX()
calculates X coordinate of center of mass
Returns:
x coordinate of element's center of mass

getCMPointY

public float getCMPointY()
calculates Y coordinate of center of mass
Returns:
y coordinate of element's center of mass

setCMPointX

public void setCMPointX(float x)
                 throws CCUnimplOperationException
set X coordinate of center of mass
Parameters:
x - desired X coordinate of center of mass

setCMPointY

public void setCMPointY(float y)
                 throws CCUnimplOperationException
set Y coordinate of center of mass
Parameters:
y - desired Y coordinate of center of mass