]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/profile.h
Rename Point to Vector
[r2c2.git] / source / libr2c2 / profile.h
index 4354a13705fd880959d482c91585125c1f21e3e2..9f56b2de92d4a6bafa47544d85c37f79048c6d02 100644 (file)
@@ -28,22 +28,22 @@ public:
 
        struct Vertex
        {
-               Point pos;
-               Point normal;
+               Vector pos;
+               Vector normal;
                bool smooth;
        };
 
 private:
        std::vector<Vertex> 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; }
 };