X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fprofile.h;h=9f56b2de92d4a6bafa47544d85c37f79048c6d02;hb=f8a7788cee0261babfc4c804a58515aad6dfbc3d;hp=7a19fbe39998adc45ed6171fdc41e394cf0e8793;hpb=c5f5ec54e81a6a85f911fa1075a0939a7352fbfd;p=r2c2.git diff --git a/source/libr2c2/profile.h b/source/libr2c2/profile.h index 7a19fbe..9f56b2d 100644 --- a/source/libr2c2/profile.h +++ b/source/libr2c2/profile.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of R²C² -Copyright © 2010 Mikkosoft Productions, Mikko Rasa +Copyright © 2010-2011 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -28,22 +28,22 @@ public: struct Vertex { - Point pos; - Point normal; + Vector pos; + Vector normal; bool smooth; }; private: std::vector vertices; - Point min_coords; - Point max_coords; + Vector min_coords; + Vector max_coords; public: - void append_vertex(const Point &, bool); + void append_vertex(const Vector &, bool); unsigned get_n_vertices() const { return vertices.size(); } const Vertex &get_vertex(unsigned) const; - const Point &get_min_coords() const { return min_coords; } - const Point &get_max_coords() const { return max_coords; } + const Vector &get_min_coords() const { return min_coords; } + const Vector &get_max_coords() const { return max_coords; } float get_width() const { return max_coords.x-min_coords.x; } float get_height() const { return max_coords.y-min_coords.y; } };