C# Class Microsoft.Samples.Kinect.SkeletonBasics.Ball

Ball representation. Handles its own position speed and direction.
ファイルを表示 Open project: rechc/KinectMiniApps Class Usage Examples

Public Properties

Property Type Description
dx double
dy double
r float
x double
y double

Public Methods

Method Description
Ball ( System.Windows.Media.Brush color, float r, double fieldWidth, double fieldHeight ) : System
DetectCollision ( Paddle pLeft, Paddle pRight ) : void
Draw ( System.Windows.Media.DrawingContext dc ) : void
HitLeft ( ) : bool
HitRight ( ) : bool
Move ( ) : void
Spawn ( ) : void

Private Methods

Method Description
plusOrMinus ( ) : double

Method Details

Ball() public method

public Ball ( System.Windows.Media.Brush color, float r, double fieldWidth, double fieldHeight ) : System
color System.Windows.Media.Brush
r float
fieldWidth double
fieldHeight double
return System

DetectCollision() public method

public DetectCollision ( Paddle pLeft, Paddle pRight ) : void
pLeft Paddle
pRight Paddle
return void

Draw() public method

public Draw ( System.Windows.Media.DrawingContext dc ) : void
dc System.Windows.Media.DrawingContext
return void

HitLeft() public method

public HitLeft ( ) : bool
return bool

HitRight() public method

public HitRight ( ) : bool
return bool

Move() public method

public Move ( ) : void
return void

Spawn() public method

public Spawn ( ) : void
return void

Property Details

dx public_oe property

public double dx
return double

dy public_oe property

public double dy
return double

r public_oe property

public float r
return float

x public_oe property

public double x
return double

y public_oe property

public double y
return double