projects
/
antikythera
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
meshing recaclulation on the fly, picking, whatever
[antikythera]
/
src
/
gear.h
diff --git
a/src/gear.h
b/src/gear.h
index
281e77f
..
45a3d13
100644
(file)
--- a/
src/gear.h
+++ b/
src/gear.h
@@
-79,6
+79,8
@@
public:
const Vec3 &get_position() const;
Vec3 get_global_position() const; // taking parent gear into account
const Vec3 &get_position() const;
Vec3 get_global_position() const; // taking parent gear into account
+ Vec3 get_planar_position() const; // 2D pos of gear on its plane
+
void set_angle(float angle);
float get_angle() const;
void set_angle(float angle);
float get_angle() const;
@@
-90,6
+92,7
@@
public:
float get_angular_pitch() const;
void draw() const;
float get_angular_pitch() const;
void draw() const;
+ void draw_wire(float line_width = 1.0f) const;
bool gen_mesh();
};
bool gen_mesh();
};