Verlet Intergration Soft Body
Loading...
Searching...
No Matches
VectorGraphics.PrimitiveBatch.Circle Class Reference

Represents a circle shape defined by a center position, a radius, a color, and a filled property. More...

Inheritance diagram for VectorGraphics.PrimitiveBatch.Circle:
VectorGraphics.PrimitiveBatch.Shape

Public Member Functions

 Circle (Vector2 position, float radius, Color color, bool filled=true)
override void Draw (SpriteBatch spriteBatch, PrimitiveBatch primitiveBatch)
Public Member Functions inherited from VectorGraphics.PrimitiveBatch.Shape
 Shape (Vector2 position, Color color, bool filled=true)
void Draw (SpriteBatch spriteBatch, PrimitiveBatch primitiveBatch)

Static Public Member Functions

static Texture2D CreateCircleTexture (Vector2 position, float radius, Color color, bool filled=true, PrimitiveBatch primitiveBatch=null)
 creates the Circle texture by using the Midpoint Circle Algorithm to calculate the points of the circle and fill them in a texture. The method takes in the position, radius, color, and whether the circle should be filled or just an outline.

Public Attributes

float radius
Public Attributes inherited from VectorGraphics.PrimitiveBatch.Shape
Vector2 position
Color color
bool filled

Detailed Description

Represents a circle shape defined by a center position, a radius, a color, and a filled property.

Member Function Documentation

◆ CreateCircleTexture()

Texture2D VectorGraphics.PrimitiveBatch.Circle.CreateCircleTexture ( Vector2 position,
float radius,
Color color,
bool filled = true,
PrimitiveBatch primitiveBatch = null )
inlinestatic

creates the Circle texture by using the Midpoint Circle Algorithm to calculate the points of the circle and fill them in a texture. The method takes in the position, radius, color, and whether the circle should be filled or just an outline.

Parameters
position
radius
color
filled
primitiveBatch
Returns

The documentation for this class was generated from the following file:
  • PhysicsCSAlevlProject/libs/MonoGame2DVectorGraphics/Vector.cs