C# 클래스 Pokemon3D.Common.Shapes.Pie2D

Renders a 2D pie chart.
파일 보기 프로젝트 열기: nilllzz/Pokemon3D 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( ) : void
DrawBatched ( SpriteBatch batch ) : void
Pie2D ( GraphicsDevice device, float radius, float angle, int tesselation ) : Microsoft.Xna.Framework
Pie2D ( GraphicsDevice device, float radius, float angle, int tesselation, Vector2 position, bool isAveraged ) : Microsoft.Xna.Framework
SetPart ( float part ) : void

Sets the angle property of the Pie2D to a multiple of Pie and the input value.

비공개 메소드들

메소드 설명
DrawInternal ( ) : void
Initialize ( ) : void
Lerp ( float x0, float x1, float y0, float y1, float x2 ) : float
RebuildVertices ( ) : void

메소드 상세

Draw() 공개 메소드

public Draw ( ) : void
리턴 void

DrawBatched() 공개 메소드

public DrawBatched ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

Pie2D() 공개 메소드

public Pie2D ( GraphicsDevice device, float radius, float angle, int tesselation ) : Microsoft.Xna.Framework
device GraphicsDevice
radius float
angle float
tesselation int
리턴 Microsoft.Xna.Framework

Pie2D() 공개 메소드

public Pie2D ( GraphicsDevice device, float radius, float angle, int tesselation, Vector2 position, bool isAveraged ) : Microsoft.Xna.Framework
device GraphicsDevice
radius float
angle float
tesselation int
position Vector2
isAveraged bool
리턴 Microsoft.Xna.Framework

SetPart() 공개 메소드

Sets the angle property of the Pie2D to a multiple of Pie and the input value.
public SetPart ( float part ) : void
part float A number between 0 and 1.
리턴 void