Point.cxx

Go to the documentation of this file.
00001 /*
00002  * HippoPlot Point  class implementation
00003  *
00004  * Copyright (C)  2000, 2001  The Board of Trustees of The Leland Stanford
00005  * Junior University.  All Rights Reserved.
00006  *
00007  * $Id: Point_8cxx-source.html,v 1.40 2008/03/24 19:27:33 pfkeb Exp $
00008  */
00009 
00010 #include "Point.h"
00011 
00012 namespace hippodraw {
00013 
00014 Point::Point( double x, double y, double z )
00015   : m_x(x), m_y(y), m_z(z)
00016 {
00017 }
00018 
00019 void Point::setPoint( double x, double y ) {
00020   m_x = x;
00021   m_y = y;
00022 }
00023 
00024 void Point::setPoint( double x, double y, double z ) {
00025   m_x = x;
00026   m_y = y;
00027   m_z = z;
00028 }
00029 
00030 void Point::moveBy ( double x, double y )
00031 {
00032   m_x += x;
00033   m_y += y;
00034 }
00035 
00036 void Point::setZ ( double z )
00037 {
00038   m_z = z;
00039 }
00040 
00041 } // namespace hippodraw
00042 

Generated for HippoDraw Class Library by doxygen