diff options
author | Filippos Karapetis | 2011-01-23 19:02:36 +0000 |
---|---|---|
committer | Filippos Karapetis | 2011-01-23 19:02:36 +0000 |
commit | b17d4ada86ec699213f449d5a26b03b6b4402ca3 (patch) | |
tree | 7882ad1ce3db0b7af43ef662df7596b9ed87139f /engines/sword25/math/polygon.h | |
parent | b0321af3434dcc7e9330d79fa5d0ed083e50631e (diff) | |
download | scummvm-rg350-b17d4ada86ec699213f449d5a26b03b6b4402ca3.tar.gz scummvm-rg350-b17d4ada86ec699213f449d5a26b03b6b4402ca3.tar.bz2 scummvm-rg350-b17d4ada86ec699213f449d5a26b03b6b4402ca3.zip |
SWORD25: Removed several unused methods from the Polygon class
svn-id: r55477
Diffstat (limited to 'engines/sword25/math/polygon.h')
-rw-r--r-- | engines/sword25/math/polygon.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/engines/sword25/math/polygon.h b/engines/sword25/math/polygon.h index 1b2a0b191c..4bb28f827a 100644 --- a/engines/sword25/math/polygon.h +++ b/engines/sword25/math/polygon.h @@ -114,20 +114,6 @@ public: bool isCCW() const; /** - * Checks whether the polygon is convex. - * @return Returns true if the polygon is convex. Returns false if the polygon is concave. - * @remark This method only returns a meaningful result if the polygon has at least three Vertecies. - */ - bool isConvex() const; - - /** - * Checks whether the polygon is concave. - * @return Returns true if the polygon is concave. Returns false if the polygon is convex. - * @remark This method only returns a meaningful result if the polygon has at least three Vertecies. - */ - bool isConcave() const; - - /** * Checks whether a point is inside the polygon * @param Vertex A Vertex with the co-ordinates of the point to be tested. * @param BorderBelongsToPolygon Specifies whether the edge of the polygon should be considered @@ -200,7 +186,6 @@ public: private: bool _isCW; - bool _isConvex; Vertex _centroid; /** @@ -216,12 +201,6 @@ private: bool computeIsCW() const; /** - * Determines whether the polygon is convex or concave. - * @return Returns true if the polygon is convex, otherwise false. - */ - bool computeIsConvex() const; - - /** * Calculates the cross product of three Vertecies * @param V1 The first Vertex * @param V2 The second Vertex @@ -232,19 +211,6 @@ private: int crossProduct(const Vertex &v1, const Vertex &v2, const Vertex &v3) const; /** - * Computes the scalar product of two vectors spanning three vertecies - * - * The vectors are spanned by V2->V1 and V2->V3 - * - * @param V1 The first Vertex - * @param V2 The second Vertex - * @param V3 The third Vertex - * @return Returns the dot product of the three Vertecies. - * @todo This method would be better as a method of the BS_Vertex class - */ - int dotProduct(const Vertex &v1, const Vertex &v2, const Vertex &v3) const; - - /** * Checks whether the polygon is self-intersecting * @return Returns true if the polygon is self-intersecting. * Returns false if the polygon is not self-intersecting. |