Point.cxx
Go to the documentation of this file.
1 /*
2  * HippoPlot Point class implementation
3  *
4  * Copyright (C) 2000, 2001 The Board of Trustees of The Leland Stanford
5  * Junior University. All Rights Reserved.
6  *
7  * $Id: Point.cxx,v 1.18 2005/10/30 00:10:12 pfkeb Exp $
8  */
9 
10 #include "Point.h"
11 
12 namespace hippodraw {
13 
14 Point::Point( double x, double y, double z )
15  : m_x(x), m_y(y), m_z(z)
16 {
17 }
18 
19 void Point::setPoint( double x, double y ) {
20  m_x = x;
21  m_y = y;
22 }
23 
24 void Point::setPoint( double x, double y, double z ) {
25  m_x = x;
26  m_y = y;
27  m_z = z;
28 }
29 
30 void Point::moveBy ( double x, double y )
31 {
32  m_x += x;
33  m_y += y;
34 }
35 
36 void Point::setZ ( double z )
37 {
38  m_z = z;
39 }
40 
41 } // namespace hippodraw
42 

Generated for HippoDraw Class Library by doxygen