메소드 | 설명 | |
---|---|---|
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
|
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 |
public PolygonShape ( DnK game, Vector2 vertices ) : System | ||
game | DnK | |
vertices | Vector2 | The vertices in a clockwise order |
리턴 | System |