class Point3D {
private:
double x, y, z;
public:
Point3D(double a, double b, double c) {
x = a;
y = b;
z = c;
}
Point3D(float a, float b, float c) {
x = a;
y = b;
z = c;
}
void setX(double a) {
x = a;
}
void setY(double b) {
y = b;
}
void setZ(double c) {
z = c;
}
double GetX() {
return x;
}
double GetY() {
return y;
}
double GetZ() {
return z;
}
};