sources:
BOX.CPP (3.1k)
BOX.H (507 bytes)
RAY.CPP (609 bytes)
RAY.H (604 bytes)
SPHERE.CPP (1.9k)
SPHERE.H (564 bytes)
TRIANGLE.CPP (2.1k)
TRIANGLE.H (1.2k)
UTIL.H (1.7k)
VECTOR.CPP (1.6k)
VECTOR.H (5.0k)
cgapplication.cpp (3.2k)
cgapplication.h (3.5k)
cgraytracer.cpp (18.8k)
cgraytracer.h (1.6k)
shape.h (754 bytes)


binaries:
Release/raytracer.exe (38.0k)


website:
more info here


screenshot:
studies/grafik2/Computergrafik-Code6/Aufgabe17/RAY.H
download file

  1 #ifndef _RAY_H
  2 #define _RAY_H
  3
  4 #include "vector.h"
  5
  6 //- Ray
  7 class Ray {
  8 //. Ray Class.
  9 public:
 10     //- Ray
 11     Ray(const Vector& origin = Vector(0,0,0),
 12         const Vector& direction = Vector(0,0,1),
 13         double lightspeed = 1.0)
;   
 14            
 15     const Vector& getOrigin() const;
 16     void setOrigin(const Vector& o);
 17     const Vector& getDirection() const;
 18     void setDirection(const Vector& n);   
 19     double getLightspeed() const;
 20     void setLightspeed(double lightspeed);
 21
 22 private:
 23     Vector origin_;
 24     Vector direction_;
 25     double lightspeed_;
 26 };
 27
 28 #endif // _Ray_H
 29