Vector3D - / This file contains the definition 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 definition of the class Vector3D / #include <math.h> # #include "Vector3D.h" #include "Normal.h" #include "Point3D.h" # // ---------------------------------------------------------- default constructor / Vector3D::Vector3D(void) : x(0.0), y(0.0), z(0.0) {} { // ---------------------------------------------------------- constructor / Vector3D::Vector3D(double a) : x(a), y(a), z(a) {} { // ---------------------------------------------------------- constructor / Vector3D::Vector3D(double _x, double _y, double _z) : x(_x), y(_y), z(_z) {} { // ---------------------------------------------------------- copy constructor / : x(vector.x), y(vector.y), z(vector.z) {} { // ---------------------------------------------------------- constructor // constructs a vector from a normal / Vector3D::Vector3D(const Normal& n) : x(n.x), y(n.y), z(n.z) {} { // ---------------------------------------------------------- constructor // constructs a vector from a point
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.

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

Vector3D - / This file contains the definition 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