Represents a circle shape defined by a center position, a radius, a color, and a filled property.
More...
|
|
| Circle (Vector2 position, float radius, Color color, bool filled=true) |
|
override void | Draw (SpriteBatch spriteBatch, PrimitiveBatch primitiveBatch) |
|
| Shape (Vector2 position, Color color, bool filled=true) |
|
void | Draw (SpriteBatch spriteBatch, PrimitiveBatch primitiveBatch) |
|
| 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.
|
|
|
float | radius |
|
Vector2 | position |
|
Color | color |
|
bool | filled |
Represents a circle shape defined by a center position, a radius, a color, and a filled property.
◆ 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