X-Git-Url: https://git.rohieb.name/MicroTrace.git/blobdiff_plain/9e556ed5343384fcf9258fe0f37af3c1fb9b9b3d..464aa50da8460f3e20b8601750cde04386e23374:/Vec3f.hxx diff --git a/Vec3f.hxx b/Vec3f.hxx index 74f304b..6b67d5b 100644 --- a/Vec3f.hxx +++ b/Vec3f.hxx @@ -10,8 +10,6 @@ #define MAX(a,b) ((a)>(b)?(a):(b)) #endif -#define max(a,b) MAX(a,b) -#define min(a,b) MIN(a,b) #define Epsilon 1E-4 #define Infinity HUGE_VAL @@ -30,12 +28,12 @@ public: Vec3f& operator=(const Vec3f& o); //! dot product - float operator|(const Vec3f& o); - float dot(const Vec3f& o); + float operator|(const Vec3f& o) const; + float dot(const Vec3f& o) const; //! cross product - Vec3f operator%(const Vec3f& o); - Vec3f cross(const Vec3f& o); + Vec3f operator%(const Vec3f& o) const; + Vec3f cross(const Vec3f& o) const; //! normalize vector void normalize();