diff options
Diffstat (limited to 'src/vanishing-point.h')
| -rw-r--r-- | src/vanishing-point.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vanishing-point.h b/src/vanishing-point.h index de06002e4..3be5d085e 100644 --- a/src/vanishing-point.h +++ b/src/vanishing-point.h @@ -24,7 +24,7 @@ enum VPState { // The X-/Y-/Z-axis corresponds to the first/second/third digit // in binary representation, respectively. -enum PerspDir { +enum Axis { X = 1, Y = 2, Z = 4, @@ -33,12 +33,12 @@ enum PerspDir { /** Given two axis directions out of {X, Y, Z}, returns the remaining one */ -inline Box3D::PerspDir third_axis_direction (Box3D::PerspDir dir1, Box3D::PerspDir dir2) { - return (Box3D::PerspDir) ((dir1 + dir2) ^ 0x7); +inline Box3D::Axis third_axis_direction (Box3D::Axis dir1, Box3D::Axis dir2) { + return (Box3D::Axis) ((dir1 + dir2) ^ 0x7); } -// FIXME: Store the PerspDir of the VP inside the class +// FIXME: Store the Axis of the VP inside the class class VanishingPoint : public NR::Point { public: inline VanishingPoint() : NR::Point() {}; @@ -63,7 +63,7 @@ public: bool is_finite(); VPState toggle_parallel(); - void draw(PerspDir const axis); // Draws a point on the canvas if state == VP_FINITE + void draw(Box3D::Axis const axis); // Draws a point on the canvas if state == VP_FINITE //inline VPState state() { return state; } VPState state; |
