Raytracer
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Raytracer::Core::Ray Class Reference

Public Member Functions

 Ray (const Utils::Point3 &origin, const Utils::Vec3 &direction, double time=0.0)
 Construct a new Ray object.
 
Utils::Point3 at (double t) const
 Get the origin of the ray.
 

Constructor & Destructor Documentation

◆ Ray()

Raytracer::Core::Ray::Ray ( const Utils::Point3 & origin,
const Utils::Vec3 & direction,
double time = 0.0 )

Construct a new Ray object.

This function constructs a new Ray object with the given origin, direction, and time.

Parameters
originThe origin of the ray.
directionThe direction of the ray.
timeThe time of the ray.
Returns
A new Ray object.

Member Function Documentation

◆ at()

Raytracer::Utils::Point3 Raytracer::Core::Ray::at ( double t) const

Get the origin of the ray.

This function returns the origin of the ray.

Returns
The origin of the ray.

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