Skip to content

dakku::Ray

ray

#include <ray.h>

Inherited by dakku::RayDifferential

Public Functions

Name
Ray() =default
Ray(Point3f o, Vector3f d, float t_max =INF)
Point3f operator()(float t) const
get the point on the ray at \(t\)
bool has_nans() const
check whether the ray has nans

Public Attributes

Name
Point3f o
ray origin
Vector3f d
ray direction (note: it may not be normalized)
float tMax
ray max time

Public Functions Documentation

function Ray

Ray() =default

function Ray

inline explicit Ray(
    Point3f o,
    Vector3f d,
    float t_max =INF
)

function operator()

inline Point3f operator()(
    float t
) const

get the point on the ray at \(t\)

function has_nans

inline bool has_nans() const

check whether the ray has nans

Public Attributes Documentation

variable o

Point3f o;

ray origin

variable d

Vector3f d;

ray direction (note: it may not be normalized)

variable tMax

float tMax {INF};

ray max time


Updated on 2022-04-30 at 15:46:11 +0000