C# Class FlatRedBallExtensions.ScaledPolygon

Inheritance: Polygon, IRelativeScalable
Afficher le fichier Open project: kainazzzo/flatredball-spriter Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
RecalculateScale ( ) : void

Method Details

CreateRectangle() public static méthode

public static CreateRectangle ( float x, float y, int width, int height ) : ScaledPolygon
x float
y float
width int
height int
Résultat ScaledPolygon

CreateRectangleWithPivot() public static méthode

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
Résultat ScaledPolygon

ScaledPolygon() public méthode

public ScaledPolygon ( ) : System
Résultat System

SetUnscaledPoints() public méthode

public SetUnscaledPoints ( IList points ) : void
points IList
Résultat void

UpdateDependencies() public méthode

public UpdateDependencies ( double currentTime ) : void
currentTime double
Résultat void