C# Class BouncingBallAccelerate.Scene

显示文件 Open project: EFanZh/EFanZh

Public Methods

Method Description
GetBallLocation ( System.TimeSpan time ) : Point
Scene ( double ballSize, Point initialBallLocation, System.Windows.Vector acceleration ) : System
SetSize ( Size size ) : void

Private Methods

Method Description
Cut ( double x, double range ) : double
GetPosition ( double s, double a, System.TimeSpan t ) : double
Square ( double x ) : double

Method Details

GetBallLocation() public method

public GetBallLocation ( System.TimeSpan time ) : Point
time System.TimeSpan
return Point

Scene() public method

public Scene ( double ballSize, Point initialBallLocation, System.Windows.Vector acceleration ) : System
ballSize double
initialBallLocation Point
acceleration System.Windows.Vector
return System

SetSize() public method

public SetSize ( Size size ) : void
size System.Windows.Size
return void