00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00057 #include "machine_dependent_compiler_directives.h"
00058
00059
00060 RS_BEGIN_NAMESPACE
00061
00062
00063 inline void MobileObject::setPosition(const PointUE& pos) {
00064 position = pos;
00065 }
00066
00067 inline FloatUE MobileObject::getPosX() const {
00068 return position.getX();
00069 }
00070
00071 inline FloatUE MobileObject::getPosY() const {
00072 return position.getY();
00073 }
00074
00075 inline PointUE MobileObject::getPosition() const {
00076 return position;
00077 }
00078
00079 inline void MobileObject::setObservationTime(const TimeUnknown& time) {
00080 observationTime = time;
00081 }
00082
00083 inline TimeUnknown MobileObject::getObservationTime() const {
00084 return observationTime;
00085 }
00086
00087 inline void MobileObject::setSpeedVector(const VectorUE& v) {
00088 speed = v;
00089 }
00090
00091 inline VectorUE MobileObject::getSpeedVector() const {
00092 return speed;
00093 }
00094
00095 inline void MobileObject::setSpeed(const FloatUE new_speed) {
00096 speed.setLength(new_speed);
00097 }
00098
00099 inline FloatUE MobileObject::getSpeed() const {
00100 return speed.getLength();
00101 }
00102
00103 inline void MobileObject::setSpeedDirection(const AngleDegUE& ang) {
00104 speed.setAngle(ang);
00105 }
00106
00107
00108 inline AngleDegUE MobileObject::getSpeedDirection() const {
00109 return speed.getAngle();
00110 }
00111
00112 inline void MobileObject::setSpeedObservationTime(const TimeUnknown& time) {
00113 speedObservationTime = time;
00114 }
00115
00116 inline TimeUnknown MobileObject::getSpeedObservationTime() const {
00117 return speedObservationTime;
00118 }
00119
00120 inline void MobileObject::setAcceleration(const VectorUE& acc) {
00121 acceleration = acc;
00122 }
00123
00124 inline VectorUE MobileObject::getAcceleration() const {
00125 return acceleration;
00126 }
00127
00128 RS_END_NAMESPACE