1 #ifndef beachballdata_h 2 #define beachballdata_h 10 #include "generalmod.h" 32 , color1_(c1), color2_(c2)
33 , pos_(p), elasticity_(el) {}
39 void setRadius(
float);
42 void setColor1(
Color);
45 void setColor2(
Color);
48 void setPos(
const Coord3&);
50 float elasticity()
const;
51 void setElasticity(
float);
79 , directionvec_(dirvec) {}
85 void setSpeed(
const float&);
87 Coord3 directionvector()
const;
88 void setDirectionVector(
const Coord3&);
90 void velocity(
float*,
Coord3*)
const;
91 void setVelocity(
float,
const Coord3&);
#define mExpClass(module)
Definition: commondefs.h:160
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
basic properties of the ball
Definition: beachballdata.h:20
float speed_
Definition: beachballdata.h:99
BallDynamics(const char *nm=0, float sp=1.0, Coord3 dirvec=Coord3(1, 1, 1))
Definition: beachballdata.h:74
BallProperties(const char *nm=0, float r=500, Color c1=Color(255, 0, 0), Color c2=Color::White(), Coord3 p=Coord3(0, 0, 0), float el=0.5)
Definition: beachballdata.h:24
float elasticity_
Definition: beachballdata.h:63
dynamic properties of the ball
Definition: beachballdata.h:70
FixedString Color()
Definition: keystrs.h:46
Color color2_
Definition: beachballdata.h:61
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
float radius_
Definition: beachballdata.h:59
Color color1_
Definition: beachballdata.h:60
A cartesian coordinate in 3D space.
Definition: coord.h:72
Coord3 pos_
Definition: beachballdata.h:62
static Color White()
Definition: color.h:85
Object with a name.
Definition: namedobj.h:35
Definition: beachballdata.h:15
Coord3 directionvec_
movement dir
Definition: beachballdata.h:100
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26