C# 클래스 FootballSimulationApp.GraphicsExtensions

파일 보기 프로젝트 열기: PurdueSIGAI/SoccerApp

공개 메소드들

메소드 설명
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.

메소드 상세

DrawCircle() 공개 정적인 메소드

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.
리턴 void

DrawEllipse() 공개 정적인 메소드

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.
리턴 void

DrawLine() 공개 정적인 메소드

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.
리턴 void

DrawRectangle() 공개 정적인 메소드

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
리턴 void

FillCircle() 공개 정적인 메소드

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.
리턴 void

FillEllipse() 공개 정적인 메소드

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.
리턴 void