Textfeld:

Kegeln auf Java

Dokumentation und Code

Ground

bowling_all
Class Ground

java.lang.Object
  extended by bowling_all.Ground

public class Ground
extends java.lang.Object

charackterizes the surface of the ground

Author:
Biber and PhiSch

Constructor Summary
Ground()
           
 
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
 

Constructor Detail

Ground

public Ground()
Method Detail

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 - slope
woelbung - concavity
vor - ture if there is a buckle and false if not
DelleX - coordinate x
DelleY - coordinate y
DelleR - radius
DelleP - intensity of the curvature

GroundAccX

public static double GroundAccX(double kugelX,
                                double kugelY)
Parameters:
kugelX - x coordinate of the ball
kugelY - 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 ball
kugelY - y coordinate of the ball
Returns:
acceleration on Y-axis dependent on the Ground-settings


Code:                        AnimationPaint.java  ComputeAnimation.java  Delle.java  Ground.java  Kegel.java  Kugel.java  Window.java

All Classes All Classes
AnimationPaint
ComputeAnimation
Delle
Ground
Kegel
Kugel
Window

Javadoc:

© 2007 Biber & PhiSch