Please send questions to
st10@humboldt.edu .
/*-------------------------------------------------------
Implementation file for class Point3
created by: Sharon Tuttle
last modified: 12-3-03
---------------------------------------------------------*/
#include "Point3.h"
using namespace std;
// implementation of constructor(s)
Point3::Point3(float new_x, float new_y, float new_z)
{
x = new_x;
y = new_y;
z = new_z;
}
Point3::Point3()
{
x = 0;
y = 0;
z = 0;
}
// implementation of accessor functions
float Point3::get_x() const
{
return x;
}
float Point3::get_y() const
{
return y;
}
float Point3::get_z() const
{
return z;
}
// implementation of mutator functions
void Point3::set_x(float new_x)
{
x = new_x;
}
void Point3::set_y(float new_y)
{
y = new_y;
}
void Point3::set_z(float new_z)
{
z = new_z;
}
// OTHER member function implementations, if desired