FarseerPhysics.Collision.Shapes.CircleShape.CircleShape C# (CSharp) Method

CircleShape() public method

Create a new circle with the desired radius and density.
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.
		}

Same methods

CircleShape::CircleShape ( ) : System