Normal - / This file contains the defintion of the class...

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

View Full Document Right Arrow Icon
// This file contains the defintion of the class Normal / #include <math.h> # #include "Normal.h" # // ---------------------------------------------------------- default constructor / Normal::Normal(void) : x(0.0), y(0.0), z(0.0) {} { // ---------------------------------------------------------- constructor / Normal::Normal(double a) : x(a), y(a), z(a) {} { // ---------------------------------------------------------- constructor / Normal::Normal(double _x, double _y, double _z) : x(_x), y(_y), z(_z) {} { // ---------------------------------------------------------- copy constructor / : x(n.x), y(n.y), z(n.z) {} { // ---------------------------------------------------------- constructor // construct a normal from a vector / : x(v.x), y(v.y), z(v.z) {} { // ---------------------------------------------------------- destructor / Normal::~Normal (void) N {} { // ----------------------------------------------------------- operator=
Background image of page 1

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

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

Page1 / 2

Normal - / This file contains the defintion of the class...

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