C# 클래스 EzGame.Collision.Polygon

파일 보기 프로젝트 열기: CodeTreeCommunity/Shooter2D 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Lines Line[]
Position Vector2

공개 메소드들

메소드 설명
CreateCircle ( float Radius, Vector2 Origin, byte Sides = 8 ) : Polygon
CreateCross ( Vector2 Radius, Vector2 Origin ) : Polygon
CreateCross ( float Radius, Vector2 Origin ) : Polygon
CreateEllipse ( Vector2 Radius, Vector2 Origin, byte Sides = 8 ) : Polygon
CreateLine ( Line Line ) : Polygon
CreateLines ( Line Lines ) : Polygon
CreateRectangle ( Vector2 Size, Vector2 Origin ) : Polygon
CreateRectangleWithCross ( Vector2 Size, Vector2 Origin ) : Polygon
CreateSquare ( float Radius, Vector2 Origin ) : Polygon
CreateSquareWithCross ( float Radius, Vector2 Origin ) : Polygon
Draw ( Batch Batch, Color Color, float Thickness, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Draw ( Color Color, float Thickness, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Intersects ( Line Line ) : bool
Intersects ( Line Line, Vector2 &Intersection ) : bool
Intersects ( Polygon Polygon ) : bool
Intersects ( Polygon Polygon, Vector2 &Intersection ) : bool
Polygon ( ) : System
Polygon ( Line Lines ) : System
Rotate ( Vector2 Position, float Angle ) : Vector2

메소드 상세

CreateCircle() 공개 정적인 메소드

public static CreateCircle ( float Radius, Vector2 Origin, byte Sides = 8 ) : Polygon
Radius float
Origin Vector2
Sides byte
리턴 Polygon

CreateCross() 공개 정적인 메소드

public static CreateCross ( Vector2 Radius, Vector2 Origin ) : Polygon
Radius Vector2
Origin Vector2
리턴 Polygon

CreateCross() 공개 정적인 메소드

public static CreateCross ( float Radius, Vector2 Origin ) : Polygon
Radius float
Origin Vector2
리턴 Polygon

CreateEllipse() 공개 정적인 메소드

public static CreateEllipse ( Vector2 Radius, Vector2 Origin, byte Sides = 8 ) : Polygon
Radius Vector2
Origin Vector2
Sides byte
리턴 Polygon

CreateLine() 공개 정적인 메소드

public static CreateLine ( Line Line ) : Polygon
Line Line
리턴 Polygon

CreateLines() 공개 정적인 메소드

public static CreateLines ( Line Lines ) : Polygon
Lines Line
리턴 Polygon

CreateRectangle() 공개 정적인 메소드

public static CreateRectangle ( Vector2 Size, Vector2 Origin ) : Polygon
Size Vector2
Origin Vector2
리턴 Polygon

CreateRectangleWithCross() 공개 정적인 메소드

public static CreateRectangleWithCross ( Vector2 Size, Vector2 Origin ) : Polygon
Size Vector2
Origin Vector2
리턴 Polygon

CreateSquare() 공개 정적인 메소드

public static CreateSquare ( float Radius, Vector2 Origin ) : Polygon
Radius float
Origin Vector2
리턴 Polygon

CreateSquareWithCross() 공개 정적인 메소드

public static CreateSquareWithCross ( float Radius, Vector2 Origin ) : Polygon
Radius float
Origin Vector2
리턴 Polygon

Draw() 공개 메소드

public Draw ( Batch Batch, Color Color, float Thickness, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Batch EzGame.Perspective.Planar.Batch
Color Color
Thickness float
Effect SpriteEffects
Layer float
리턴 void

Draw() 공개 메소드

public Draw ( Color Color, float Thickness, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Color Color
Thickness float
Effect SpriteEffects
Layer float
리턴 void

Intersects() 공개 메소드

public Intersects ( Line Line ) : bool
Line Line
리턴 bool

Intersects() 공개 메소드

public Intersects ( Line Line, Vector2 &Intersection ) : bool
Line Line
Intersection Vector2
리턴 bool

Intersects() 공개 메소드

public Intersects ( Polygon Polygon ) : bool
Polygon Polygon
리턴 bool

Intersects() 공개 메소드

public Intersects ( Polygon Polygon, Vector2 &Intersection ) : bool
Polygon Polygon
Intersection Vector2
리턴 bool

Polygon() 공개 메소드

public Polygon ( ) : System
리턴 System

Polygon() 공개 메소드

public Polygon ( Line Lines ) : System
Lines Line
리턴 System

Rotate() 공개 정적인 메소드

public static Rotate ( Vector2 Position, float Angle ) : Vector2
Position Vector2
Angle float
리턴 Vector2

프로퍼티 상세

Lines 공개적으로 프로퍼티

public Line[] Lines
리턴 Line[]

Position 공개적으로 프로퍼티

public Vector2 Position
리턴 Vector2