Initial commit.
This commit is contained in:
commit
44b5f2392f
98 changed files with 11750 additions and 0 deletions
25
physics/transform.h
Normal file
25
physics/transform.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// -*- C++ -*-
|
||||
|
||||
#ifndef MBOSTOCK_TRANSFORM_H
|
||||
#define MBOSTOCK_TRANSFORM_H
|
||||
|
||||
namespace mbostock {
|
||||
|
||||
class Transform {
|
||||
public:
|
||||
Transform();
|
||||
virtual ~Transform() {}
|
||||
|
||||
void enable(bool enabled = true);
|
||||
inline bool enabled() const { return enabled_; }
|
||||
|
||||
virtual void reset() = 0;
|
||||
virtual void step() = 0;
|
||||
|
||||
private:
|
||||
bool enabled_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue