mirror of
https://github.com/processing/processing4.git
synced 2026-02-01 21:01:07 +01:00
17 lines
180 B
Plaintext
17 lines
180 B
Plaintext
class Ball{
|
|
float x, y, r, m;
|
|
|
|
// default constructor
|
|
Ball() {
|
|
}
|
|
|
|
Ball(float x, float y, float r) {
|
|
this.x = x;
|
|
this.y = y;
|
|
this.r = r;
|
|
m = r*.1;
|
|
}
|
|
}
|
|
|
|
|