C# Class FootballSimulationApp.GraphicsExtensions

Afficher le fichier Open project: PurdueSIGAI/SoccerApp

Méthodes publiques

Méthode Description
DrawCircle ( this g, Pen pen, System.Numerics.Vector2 center, float radius ) : void

Draws a circle defined by a center point and the radius.

DrawEllipse ( this g, Pen pen, System.Numerics.Vector2 center, float radiusX, float radiusY ) : void

Draws an ellipse defined by a center point and the radius on the x and y axes.

DrawLine ( this g, Pen pen, System.Numerics.Vector2 pt1, System.Numerics.Vector2 pt2 ) : void

Draws a line connecting two points specified by the vectors.

DrawRectangle ( this g, Pen pen, RectangleF rect ) : void

Draws a rectangle.

FillCircle ( this g, Brush brush, System.Numerics.Vector2 center, float radius ) : void

Fills the interior of a circle defined by a center point and the radius.

FillEllipse ( this g, Brush brush, System.Numerics.Vector2 center, float radiusX, float radiusY ) : void

Fills the interior of an ellipse defined by a center point and the radius on the x and y axes.

Method Details

DrawCircle() public static méthode

Draws a circle defined by a center point and the radius.
public static DrawCircle ( this g, Pen pen, System.Numerics.Vector2 center, float radius ) : void
g this The drawing surface.
pen System.Drawing.Pen Pen that determines the color, width, and style of the circle.
center System.Numerics.Vector2 The center point of the circle.
radius float The radius of the circle.
Résultat void

DrawEllipse() public static méthode

Draws an ellipse defined by a center point and the radius on the x and y axes.
public static DrawEllipse ( this g, Pen pen, System.Numerics.Vector2 center, float radiusX, float radiusY ) : void
g this The drawing surface.
pen System.Drawing.Pen Pen that determines the color, width, and style of the ellipse.
center System.Numerics.Vector2 The center point of the ellipse.
radiusX float The radius on the x axis.
radiusY float The radius on the y axis.
Résultat void

DrawLine() public static méthode

Draws a line connecting two points specified by the vectors.
public static DrawLine ( this g, Pen pen, System.Numerics.Vector2 pt1, System.Numerics.Vector2 pt2 ) : void
g this The drawing surface.
pen System.Drawing.Pen Pen that determines the color, width, and style of the line.
pt1 System.Numerics.Vector2 The first point.
pt2 System.Numerics.Vector2 The second point.
Résultat void

DrawRectangle() public static méthode

Draws a rectangle.
public static DrawRectangle ( this g, Pen pen, RectangleF rect ) : void
g this The drawing surface.
pen System.Drawing.Pen Pen that determines the color, width, and style of the rectangle.
rect System.Drawing.RectangleF
Résultat void

FillCircle() public static méthode

Fills the interior of a circle defined by a center point and the radius.
public static FillCircle ( this g, Brush brush, System.Numerics.Vector2 center, float radius ) : void
g this The drawing surface.
brush System.Drawing.Brush Brush that determines the characteristics of the fill.
center System.Numerics.Vector2 The center point of the circle.
radius float The radius of the circle.
Résultat void

FillEllipse() public static méthode

Fills the interior of an ellipse defined by a center point and the radius on the x and y axes.
public static FillEllipse ( this g, Brush brush, System.Numerics.Vector2 center, float radiusX, float radiusY ) : void
g this The drawing surface.
brush System.Drawing.Brush Brush that determines the characteristics of the fill.
center System.Numerics.Vector2 The center point of the ellipse.
radiusX float The radius on the x axis.
radiusY float The radius on the y axis.
Résultat void