Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Ray Struct Reference

Represent a ray, shot from a given position in a specific direction. More...

#include <Intersection.hpp>

Public Member Functions

 Ray (const glm::vec3 &origin, const glm::vec3 &direction)
 

Public Attributes

const glm::vec3 pos
 Ray position.
 
const glm::vec3 dir
 Ray direction (normalized).
 
const glm::vec3 invdir
 Ray reciprocal direction (normalized).
 

Detailed Description

Represent a ray, shot from a given position in a specific direction.

Constructor & Destructor Documentation

◆ Ray()

Ray::Ray ( const glm::vec3 &  origin,
const glm::vec3 &  direction 
)

Constructor.

Parameters
originthe position the ray was shot from
directionthe direction of the ray (will be normalized)

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