net.jinx.physics.gravity
Class CenterOfGravityTag

java.lang.Object
  extended by net.jinx.physics.gravity.CenterOfGravityTag
All Implemented Interfaces:
Tag

public class CenterOfGravityTag
extends java.lang.Object
implements Tag

Tag implementation to provide a Physical object with a center of gravity, in the case of an object with separate center of mass and center of gravity.


Field Summary
static java.lang.String VAR_NAME
           
 
Constructor Summary
CenterOfGravityTag(Vector cog)
           
 
Method Summary
 Vector getCenter()
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VAR_NAME

public static final java.lang.String VAR_NAME
See Also:
Constant Field Values
Constructor Detail

CenterOfGravityTag

public CenterOfGravityTag(Vector cog)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Tag

getCenter

public Vector getCenter()