00001 #ifndef _UV_H_ 00002 #define _UV_H_ 00003 00004 #include "cglib/definitions.h" 00005 00007 struct Uv 00008 { 00009 public: 00011 float u; 00013 float v; 00014 00015 Uv(); 00016 Uv(float c); 00017 Uv(float _u, float _v); 00018 bool operator==(const Uv &other) const; 00019 bool is_near(const Uv &other, float threshold=EPSILON) const; 00020 }; 00021 00022 #endif /* _UV_H_ */ 00023 00024