public CircleShape ( float radius, float density ) : System | ||
radius | float | The radius of the circle. |
density | float | The density of the circle. |
return | System |
public CircleShape( float radius, float density ) : base( density )
{
Debug.Assert( radius >= 0 );
Debug.Assert( density >= 0 );
shapeType = ShapeType.Circle;
_position = Vector2.Zero;
base.radius = radius; // The Radius property cache 2radius and calls ComputeProperties(). So no need to call ComputeProperties() here.
}
CircleShape::CircleShape ( ) : System |