Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

point.cc

Go to the documentation of this file.
00001 #include "point.hh"
00002 
00003 namespace anoid {
00004     namespace simple {
00005 
00006         Point::Point(double getx, double gety, double getz): x(getx), y(gety), z(getz) {
00007         }
00008 
00009         double Point::getX(void) const {
00010             return x;
00011         }
00012 
00013         double Point::getY(void) const {
00014             return y;
00015         }
00016 
00017         double Point::getZ(void) const {
00018             return z;
00019         }
00020 
00021         void Point::setX(double getx) {
00022             x = getx;
00023         }
00024 
00025         void Point::setY(double gety) {
00026             y = gety;
00027         }
00028 
00029         void Point::setZ(double getz) {
00030             z = getz;
00031         }
00032 
00033         void Point::addX(double getx) {
00034             x += getx;
00035         }
00036 
00037         void Point::addY(double gety) {
00038             y += gety;
00039         }
00040 
00041         void Point::addZ(double getz) {
00042             z += getz;
00043         }
00044 
00045     };
00046 };

Anoid NG © Michael Westergaard, Martin Stig Stissing, Ronni Michael Laursen, and Kristian Bisgaard Lassen