00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef ctPointObj_H
00022 #define ctPointObj_H
00023
00024 #include "csphyzik/ctvector.h"
00025 #include "csphyzik/phyztype.h"
00026
00033 class ctPointObj
00034 {
00035 public:
00036 ctPointObj () {}
00037 virtual ~ctPointObj () {}
00038 virtual ctVector3 pos () = 0;
00039
00041 virtual ctVector3 vel () = 0;
00042
00043 virtual void apply_force(ctVector3 force) = 0;
00044 };
00045
00046 class ctConstPoint : public ctPointObj
00047 {
00048 ctVector3 x;
00049 public:
00050 ctConstPoint (ctVector3 pt)
00051 { x = pt; }
00052
00053 ~ctConstPoint() {}
00054
00055 ctVector3 pos ()
00056 { return x; }
00057
00058 ctVector3 vel ()
00059 { return ctVector3(0.0, 0.0, 0.0); }
00060
00061 void apply_force(ctVector3 ) {}
00062 };
00063
00064 #endif