#ifndef SEC6_POINT3D_H_ #define SEC6_POINT3D_H_ #include "Triple.h" class Point3D : public Triple { public: Point3D(double x, double y, double z) : Triple(x,y,z) { } // The Pythagorean distance of this point to the origin. double distanceFromOrigin() const; }; #endif // SEC6_POINT3D_H_