3ds Max C++ API Reference
Ray Class Reference

#include <point3.h>

Public Member Functions

constexpr Ray ()=default
 
constexpr Ray (const Point3 &p_p, const Point3 &p_dir)
 

Public Attributes

Point3 p
 
Point3 dir
 

Detailed Description

See also
Class Point3.

Description:
This class describes a vector in space using an origin point p, and a unit direction vector dir.
Data Members:
Point3 p;

Point of origin.

Point3 dir;

Unit direction vector.

Constructor & Destructor Documentation

◆ Ray() [1/2]

constexpr Ray ( )
constexprdefault

◆ Ray() [2/2]

constexpr Ray ( const Point3 p_p,
const Point3 p_dir 
)
inlineconstexpr
406 : p(p_p), dir(p_dir) {}
Point3 dir
Definition: point3.h:409
Point3 p
Definition: point3.h:408

Member Data Documentation

◆ p

Point3 p

◆ dir

Point3 dir