Ground
bowling_all
Class Ground
java.lang.Object
bowling_all.Ground
public class Ground
- extends java.lang.Object
charackterizes the surface of the ground
- Author:
- Biber and PhiSch
|
Method Summary |
static double |
GroundAccX(double kugelX,
double kugelY)
|
static double |
GroundAccY(double kugelX,
double kugelY)
|
static void |
setGround(double neigung,
double woelbung,
boolean vor,
double DelleX,
double DelleY,
double DelleR,
double DelleP)
allows to initialize and change the Ground |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ground
public Ground()
setGround
public static void setGround(double neigung,
double woelbung,
boolean vor,
double DelleX,
double DelleY,
double DelleR,
double DelleP)
- allows to initialize and change the Ground
- Parameters:
neigung - slopewoelbung - concavityvor - ture if there is a buckle and false if notDelleX - coordinate xDelleY - coordinate yDelleR - radiusDelleP - intensity of the curvature
GroundAccX
public static double GroundAccX(double kugelX,
double kugelY)
- Parameters:
kugelX - x coordinate of the ballkugelY - y coordinate of the ball
- Returns:
- acceleration on X-axis dependent on the Ground-settings
GroundAccY
public static double GroundAccY(double kugelX,
double kugelY)
- Parameters:
kugelX - x coordinate of the ballkugelY - y coordinate of the ball
- Returns:
- acceleration on Y-axis dependent on the Ground-settings