updated sensors and filter to current code version
removed KLib stuff added new activity filter is uncommand! at the moment, the app is not able to load new maps and breaks using old maps
This commit is contained in:
@@ -22,24 +22,26 @@ namespace MeshBased {
|
||||
;
|
||||
}
|
||||
|
||||
// MyState& operator += (const MyState& o) {
|
||||
// position += o.position;
|
||||
// return *this;
|
||||
// }
|
||||
MyState& operator += (const MyState& o) {
|
||||
loc.pos += o.loc.pos;
|
||||
return *this;
|
||||
}
|
||||
|
||||
// MyState& operator /= (const float val) {
|
||||
// position /= val;
|
||||
// return *this;
|
||||
// }
|
||||
MyState& operator /= (const float val) {
|
||||
loc.pos /= val;
|
||||
return *this;
|
||||
}
|
||||
|
||||
// MyState operator * (const float val) const {
|
||||
// MyState copy = *this;
|
||||
// copy.position = copy.position * val;
|
||||
// return copy;
|
||||
// }
|
||||
MyState operator * (const float val) const {
|
||||
MyState copy = *this;
|
||||
copy.loc.pos = copy.loc.pos * val;
|
||||
return copy;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif // MESH_STATE_H
|
||||
|
||||
Reference in New Issue
Block a user