sources:


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
 30