MAV'RIC
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
raytracing::Intersection Class Reference

Intersection betwen a ray and an object. More...

#include <raytracing.hpp>

List of all members.

Public Member Functions

 Intersection (Vector3f point=Vector3f{0.0f, 0.0f, 0.0f}, Vector3f normal=Vector3f{1.0f, 0.0f, 0.0f}, float distance=0.0f)
 Constructor.
const Vector3fpoint (void) const
 Return intersection point.
bool set_point (Vector3f point)
 Update intersection point.
const Vector3fnormal (void) const
 Return normal vector.
bool set_normal (Vector3f normal)
 Update normal.
float distance (void) const
 Return distance.
bool set_distance (float distance)
 Update normal.

Detailed Description

Intersection betwen a ray and an object.


Constructor & Destructor Documentation

Constructor.

Parameters:
pointIntersection point
normalNormal to surface at intersection
distanceDistance from intersection point to ray origin

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines