Lines Matching refs:Pt2
23 class Pt2 {
25 Pt2 () { pt[0] = 0; pt[1] = 0; pt[2] = 1.0; } // we default to (0 : 0 : 1)
26 Pt2 (double x, double y, double w) { pt[0] = x; pt[1] = y; pt[2] = w; }
27 Pt2 (Geom::Point const &point) { pt[0] = point[Geom::X]; pt[1] = point[Geom::Y]; pt[2] = 1; }
28 Pt2 (const char *coord_str);
39 inline bool operator== (Pt2 &rhs) {
46 inline bool operator!= (Pt2 &rhs) {
52 inline Pt2 &operator+(Pt2 &rhs) const {
53 Pt2 *result = new Pt2 (*this);
62 inline Pt2 &operator-(Pt2 &rhs) const {
63 Pt2 *result = new Pt2 (*this);
72 inline Pt2 &operator*(double const s) const {
73 Pt2 *result = new Pt2 (*this);