X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fprofile.h;h=fd8c01caa4faadd5f5db727cab5fbda5bc0dca62;hb=dfe3dd563981883f3b7c826102fed33c7ff0d12d;hp=4354a13705fd880959d482c91585125c1f21e3e2;hpb=754ac497179474d0266b55e881a084fef7d5d6a1;p=r2c2.git diff --git a/source/libr2c2/profile.h b/source/libr2c2/profile.h index 4354a13..fd8c01c 100644 --- a/source/libr2c2/profile.h +++ b/source/libr2c2/profile.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2010-2011 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #ifndef LIBR2C2_PROFILE_H_ #define LIBR2C2_PROFILE_H_ @@ -28,22 +21,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; } };