Ray - c Ray::Ray (const Ray& ray) : o(ray.o), d(ray.d)...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include "Ray.h" # // ---------------------------------------------------------------- default constructor c Ray::Ray (void) : o(0.0), d(0.0, 0.0, 1.0) {} { // ---------------------------------------------------------------- constructor / : o(origin), d(dir) {} { // ---------------------------------------------------------------- copy constructor
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: c Ray::Ray (const Ray& ray) : o(ray.o), d(ray.d) {} { // ---------------------------------------------------------------- assignment operator o Ray& Ray::operator= (const Ray& rhs) { R if (this == &rhs) return (*this); r o = rhs.o; d = rhs.d; d return (*this); r } // ---------------------------------------------------------------- destructor / Ray::~Ray (void) {} R...
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.

Ask a homework question - tutors are online