C# Class FlatRedBallExtensions.ScaledPolygon

Inheritance: Polygon, IRelativeScalable
Mostra file Open project: kainazzzo/flatredball-spriter Class Usage Examples

Public Methods

Method Description
CreateRectangle ( float x, float y, int width, int height ) : ScaledPolygon
CreateRectangleWithPivot ( float x, float y, int width, int height, float pivotX, float pivotY ) : ScaledPolygon
ScaledPolygon ( ) : System
SetUnscaledPoints ( IList points ) : void
UpdateDependencies ( double currentTime ) : void

Private Methods

Method Description
RecalculateScale ( ) : void

Method Details

CreateRectangle() public static method

public static CreateRectangle ( float x, float y, int width, int height ) : ScaledPolygon
x float
y float
width int
height int
return ScaledPolygon

CreateRectangleWithPivot() public static method

public static CreateRectangleWithPivot ( float x, float y, int width, int height, float pivotX, float pivotY ) : ScaledPolygon
x float
y float
width int
height int
pivotX float
pivotY float
return ScaledPolygon

ScaledPolygon() public method

public ScaledPolygon ( ) : System
return System

SetUnscaledPoints() public method

public SetUnscaledPoints ( IList points ) : void
points IList
return void

UpdateDependencies() public method

public UpdateDependencies ( double currentTime ) : void
currentTime double
return void