C# Class Pokemon3D.Common.Shapes.Pie2D

Renders a 2D pie chart.
Mostra file Open project: nilllzz/Pokemon3D Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
DrawInternal ( ) : void
Initialize ( ) : void
Lerp ( float x0, float x1, float y0, float y1, float x2 ) : float
RebuildVertices ( ) : void

Method Details

Draw() public method

public Draw ( ) : void
return void

DrawBatched() public method

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

Pie2D() public method

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

Pie2D() public method

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
return Microsoft.Xna.Framework

SetPart() public method

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.
return void