diff options
Diffstat (limited to 'meowpp/gra/Eye.h')
-rw-r--r-- | meowpp/gra/Eye.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meowpp/gra/Eye.h b/meowpp/gra/Eye.h index 0d62892..cff5ccd 100644 --- a/meowpp/gra/Eye.h +++ b/meowpp/gra/Eye.h @@ -57,7 +57,7 @@ public: return *this; } - Camera<Pixel> const& camera() const { + Camera<Pixel> camera() const { return self->cam_; } @@ -65,12 +65,12 @@ public: return self()->cam_; } - Camera<Pixel> const& camera(Camera<Pixel> const& c) { + Camera<Pixel> camera(Camera<Pixel> const& c) { self()->cam_.copyFrom(c); return camera(); } - Vector3D<double> const& offset() const { + Vector3D<double> offset() const { return self->ofs_; } @@ -78,7 +78,7 @@ public: return self()->ofs_; } - Vector3D<double> const& offset(Vector3D<double> const& ofs) { + Vector3D<double> offset(Vector3D<double> const& ofs) { self()->ofs_ = ofs; return offset(); } @@ -149,7 +149,7 @@ public: * @return this */ ObjBase* copyFrom(ObjBase const* b) { - return &(copyFrom(*(Eye*)b)); + return &(copyFrom(*(Eye const*)b)); } /*! @brief 回傳class的type |