Normal - #ifndef_NORMAL#define_NORMAL This file contains...

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

View Full Document Right Arrow Icon
#ifndef __NORMAL__ #define __NORMAL__ # // This file contains the declaration of the class Normal / #include "Matrix.h" #include "Vector3D.h" #include "Point3D.h" # class Normal { public: p double x, y, z; x public: p Normal(void); // default constructor Normal(double a); // constructor Normal(double _x, double _y, double _z); // constructor Normal(const Normal& n); // copy constructor Normal(const Vector3D& v); // constructs a normal from vector c ~Normal(void); // destructor / Normal& // assignment operator operator= (const Normal& rhs); o Normal& // assignment of a vector to a normal operator= (const Vector3D& rhs); o Normal& // assignment of a point to a normal operator= (const Point3D& rhs); o Normal // unary minus operator- (void) const; o Normal // addition operator+ (const Normal& n) const; o Normal& // compound addition operator+= (const Normal& n); o double operator* (const Vector3D& v) const; // dot product with a vector on the right p
Background image of page 1

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

View Full DocumentRight Arrow Icon
Normal // multiplication by a double on the right
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the 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 / 4

Normal - #ifndef_NORMAL#define_NORMAL This file contains...

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

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