Point3D - #ifndef __POINT3D__ #define __POINT3D__ # // This...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: #ifndef __POINT3D__ #define __POINT3D__ # // This file contains the defintion of the class Point3D / #include "Matrix.h" #include "Vector3D.h" # class Point3D { public: p double x, y, z; d Point3D(); // default constructor Point3D(const double a); // constructor Point3D(const double a, const double b, const double c); // constructor Point3D(const Point3D& p); // copy constructor ~Point3D(); // destructor / Point3D& // assignment operator operator= (const Point3D& p); o Point3D // unary minus operator- (void) const; o Vector3D // vector joining two points operator- (const Point3D& p) const; o Point3D // addition of a vector / operator+ (const Vector3D& v) const; o Point3D // subtraction of a vector operator- (const Vector3D& v) const; o Point3D // multiplication by a double on the right operator* (const double a) const; o double // square of distance bertween two points d_squared(const Point3D& p) const; d double // distance bewteen two points distance(const Point3D& p) const; }; } // inlined member functions...
View Full Document

This note was uploaded on 02/19/2010 for the course CS 390 taught by Professor Hu during the Spring '10 term at Westminster UT.

Page1 / 3

Point3D - #ifndef __POINT3D__ #define __POINT3D__ # // This...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online