C# Class Particles2D.Models.Particle

Datei anzeigen Open project: juanpaexpedite/MasterDetailsComposition Class Usage Examples

Public Properties

Property Type Description
OrientationX float
OrientationY float
Radius float
TurbulenceMatrix Matrix3x2
X float
Y float
factor float
particleBitmap int
random float

Public Methods

Method Description
Draw ( Microsoft.Graphics.Canvas.CanvasDrawingSession session ) : void
Particle ( int x, int y, int idxBitmap, float orientationx, float orientationy, CanvasRenderTarget source, float particlespeed = 0.25f, bool particlefall = false ) : System
Update ( float elapsedTime, Size bounds ) : void

Private Methods

Method Description
CheckBounds ( Size bounds ) : void
UpdatePosition ( ) : void
UpdateTurbulence ( float elapsedTime ) : void

Method Details

Draw() public method

public Draw ( Microsoft.Graphics.Canvas.CanvasDrawingSession session ) : void
session Microsoft.Graphics.Canvas.CanvasDrawingSession
return void

Particle() public method

public Particle ( int x, int y, int idxBitmap, float orientationx, float orientationy, CanvasRenderTarget source, float particlespeed = 0.25f, bool particlefall = false ) : System
x int
y int
idxBitmap int
orientationx float
orientationy float
source CanvasRenderTarget
particlespeed float
particlefall bool
return System

Update() public method

public Update ( float elapsedTime, Size bounds ) : void
elapsedTime float
bounds Windows.Foundation.Size
return void

Property Details

OrientationX public_oe property

public float OrientationX
return float

OrientationY public_oe property

public float OrientationY
return float

Radius public_oe property

public float Radius
return float

TurbulenceMatrix public_oe property

public Matrix3x2 TurbulenceMatrix
return Matrix3x2

X public_oe property

public float X
return float

Y public_oe property

public float Y
return float

factor public_oe property

public float factor
return float

particleBitmap public_oe property

public int particleBitmap
return int

random public_oe property

public float random
return float