//Basic Constructor
//Exercise
Create a Vector class.
It will have 3 attributes-> floats:  x, y and z
Add a constructor -> sets x=y=z=0;
Add a setX, setY and setZ methods.
Also add getX, getY and getZ methods.

Create a scale method.
It will, given a parameter, s and
it will change x,y and z to be s*x; s*y and s*z   (that is x=s*x; etc)
Useage:
   Vector vA;
   vA.scale(3);
If x=1, y=2 and z=3  That's vA=(1,2,3) then After calling scale(3)
vA=(3,6,9)

//Vector Class Ex

#include <iostream>
using namespace std;

class cVector
{
public:
	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;
	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;
	return 0;
}

//constructor
cVector::cVector(void)
{ 
	x = 0; y = 0; z = 0;
}



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;
}
//vector scaling
void cVector::scale(float s)
{
	x = s * x;
	y = s * y;
	z = s * z;
}

