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.cxx,v 1.17 2004/05/02 17:18:35 pfkeb Exp $ 00008 */ 00009 00010 #include "Point.h" 00011 00012 Point::Point( double x, double y, double z ) 00013 : m_x(x), m_y(y), m_z(z) 00014 { 00015 } 00016 00017 void Point::setPoint( double x, double y ) { 00018 m_x = x; 00019 m_y = y; 00020 } 00021 00022 void Point::setPoint( double x, double y, double z ) { 00023 m_x = x; 00024 m_y = y; 00025 m_z = z; 00026 } 00027 00028 void Point::moveBy ( double x, double y ) 00029 { 00030 m_x += x; 00031 m_y += y; 00032 } 00033 00034 void Point::setZ ( double z ) 00035 { 00036 m_z = z; 00037 }