//Vector Class Ex

#include <iostream>
using namespace std;

class cVector
{
public:
	cVector(float, float, float);
	cVector(void);
	void setX(float);
	void setY(float);
	void setZ(float);

	float getX(void);
	float getY(void);
	float getZ(void);

	void scale(float);

private:
	float x;
	float y;
	float z;
};

int main(void)
{
	cVector vA(1.0, 2.0, 3.0);
	cVector vB(6.0, 5.0, 1.0);
	//vA.setX(1);
	//vA.setY(2);
	//vA.setZ(3);
	cout << "( " << vA.getX() << " , " << vA.getY() << " , " << vA.getZ() << " )" << endl;
	vA.scale(3);
	cout << "( " << vA.getX() << " , " << vA.getY() << " , " << vA.getZ() << " )" << endl;
	cout << "( " << vB.getX() << " , " << vB.getY() << " , " << vB.getZ() << " )" << endl;
	return 0;
}

//constructor
cVector::cVector(void)
{
	x = 0; y = 0; z = 0;
}

cVector::cVector(float myx, float myy, float myz)
{
	x = myx;
	y = myy;
	z = myz;
}

float cVector::getX(void)
{
	return x;
}
float cVector::getY(void)
{
	return y;
}
float cVector::getZ(void)
{
	return z;
}
void cVector::setX(float myX)
{
	x = myX;
}
void cVector::setY(float myY)
{
	y = myY;
}
void cVector::setZ(float myZ)
{
	z = myZ;
}
void cVector::scale(float s)
{
	x = s * x;
	y = s * y;
	z = s * z;
}