C# 클래스 Danmaku_no_Kyojin.Shapes.PolygonShape

파일 보기 프로젝트 열기: Noxalus/Danmaku-no-Kyojin 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( Matrix viewMatrix, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale ) : void
GetArea ( ) : float
GetCenter ( ) : Vector2
GetSize ( ) : Vector2
PolygonShape ( DnK game, Vector2 vertices ) : System

A Polygon object that you will be able to draw. Animations are being implemented as we speak.

UpdateVertices ( Vector2 vertices ) : void

비공개 메소드들

메소드 설명
ComputeArea ( ) : void
ComputeCenter ( ) : void
ComputeSize ( ) : void
Triangulate ( ) : void

Triangulate the set of VertexPositionColors so it will be drawn properly

메소드 상세

Draw() 공개 메소드

public Draw ( Matrix viewMatrix, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale ) : void
viewMatrix Matrix
position Vector2
color Color
rotation float
origin Vector2
scale Vector2
리턴 void

GetArea() 공개 메소드

public GetArea ( ) : float
리턴 float

GetCenter() 공개 메소드

public GetCenter ( ) : Vector2
리턴 Vector2

GetSize() 공개 메소드

public GetSize ( ) : Vector2
리턴 Vector2

PolygonShape() 공개 메소드

A Polygon object that you will be able to draw. Animations are being implemented as we speak.
public PolygonShape ( DnK game, Vector2 vertices ) : System
game DnK
vertices Vector2 The vertices in a clockwise order
리턴 System

UpdateVertices() 공개 메소드

public UpdateVertices ( Vector2 vertices ) : void
vertices Vector2
리턴 void