MeshKit  1.0
AF2RuleExistVertex.hpp
Go to the documentation of this file.
00001 /*
00002  * AF2RuleExistVertex.hpp
00003  *
00004  * A specification of a vertex that must exist in order for a
00005  * rule to be applied.
00006  *
00007  * In general, a point having coordinates that exactly match the
00008  * reference coordinates will not exist, but a point within some
00009  * neighborhood of the ideal coordinates is still considered a
00010  * matching * vertex.
00011  */
00012 #ifndef AF2RULEEXISTVERTEX_HPP
00013 #define AF2RULEEXISTVERTEX_HPP
00014 
00015 // MeshKit
00016 #include "meshkit/AF2Point2D.hpp"
00017 
00018 class AF2RuleExistVertex
00019 {
00020   private:
00021 
00022     double x, y;
00023     double a, b, c;
00024 
00025   public:
00026 
00043     AF2RuleExistVertex(double refXCoord, double refYCoord,
00044         double coeffAlpha = 1.0, double coeffBravo = 0.0,
00045         double coeffCharlie = 1.0);
00046 
00050     double getX() const;
00051 
00055     double getY() const;
00056 
00068     bool isMatching(AF2Point2D const & matchPoint, double maxDeviation) const;
00069 };
00070 
00071 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines