RayTracer 1.0
Ray tracing is a technique used to generate realistic digital images by simulating the inverse path of light. Our goal is to create a program able to generate an image from a file describing the scene.
 
Loading...
Searching...
No Matches
RayTracer::Rectangle3D Class Reference

#include <Camera.hpp>

Public Member Functions

 Rectangle3D ()
 
 Rectangle3D (Math::Point3D _o, Math::Vector3D _bs, Math::Vector3D _ls)
 
Math::Point3D pointAt (double u, double v) const
 

Public Attributes

Math::Point3D origin
 
Math::Vector3D bottom_side
 
Math::Vector3D left_side
 

Detailed Description

Definition at line 13 of file Camera.hpp.

Constructor & Destructor Documentation

◆ Rectangle3D() [1/2]

RayTracer::Rectangle3D::Rectangle3D ( )

Definition at line 9 of file Camera.cpp.

10{}
Math::Vector3D bottom_side
Definition Camera.hpp:16
Math::Vector3D left_side
Definition Camera.hpp:17
Math::Point3D origin
Definition Camera.hpp:15

References bottom_side, left_side, and origin.

◆ Rectangle3D() [2/2]

RayTracer::Rectangle3D::Rectangle3D ( Math::Point3D _o,
Math::Vector3D _bs,
Math::Vector3D _ls )

Definition at line 12 of file Camera.cpp.

12 : origin(o), bottom_side(bs), left_side(ls)
13{}

References bottom_side, left_side, and origin.

Member Function Documentation

◆ pointAt()

Math::Point3D RayTracer::Rectangle3D::pointAt ( double u,
double v ) const

Definition at line 15 of file Camera.cpp.

16{
17 return origin + (bottom_side * u) + (left_side * v);
18}

References bottom_side, left_side, and origin.

Member Data Documentation

◆ bottom_side

Math::Vector3D RayTracer::Rectangle3D::bottom_side

Definition at line 16 of file Camera.hpp.

◆ left_side

Math::Vector3D RayTracer::Rectangle3D::left_side

Definition at line 17 of file Camera.hpp.

◆ origin

Math::Point3D RayTracer::Rectangle3D::origin

Definition at line 15 of file Camera.hpp.


The documentation for this class was generated from the following files: