C# Класс Pokemon3D.Common.Shapes.Pie2D

Renders a 2D pie chart.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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