Public Member Functions | Public Attributes | List of all members
Ray Class Reference

#include <IceRay.h>

Public Member Functions

inline_ float Distance (const Point &point, float *t=null) const
 
inline_ Ray ()
 Constructor. More...
 
inline_ Ray (const Point &orig, const Point &dir)
 Constructor. More...
 
inline_ Ray (const Ray &ray)
 Copy constructor. More...
 
float SquareDistance (const Point &point, float *t=null) const
 
inline_ ~Ray ()
 Destructor. More...
 

Public Attributes

Point mDir
 Normalized direction. More...
 
Point mOrig
 Ray origin. More...
 

Detailed Description

Ray class. A ray is a half-line P(t) = mOrig + mDir * t, with 0 <= t <= +infinity

Author
Pierre Terdiman
Version
1.0

Definition at line 15 of file IceRay.h.

Constructor & Destructor Documentation

◆ Ray() [1/3]

inline_ Ray::Ray ( )
inline

Constructor.

Definition at line 19 of file IceRay.h.

◆ Ray() [2/3]

inline_ Ray::Ray ( const Point orig,
const Point dir 
)
inline

Constructor.

Definition at line 21 of file IceRay.h.

◆ Ray() [3/3]

inline_ Ray::Ray ( const Ray ray)
inline

Copy constructor.

Definition at line 23 of file IceRay.h.

◆ ~Ray()

inline_ Ray::~Ray ( )
inline

Destructor.

Definition at line 25 of file IceRay.h.

Member Function Documentation

◆ Distance()

inline_ float Ray::Distance ( const Point point,
float *  t = null 
) const
inline

Definition at line 28 of file IceRay.h.

◆ SquareDistance()

float Ray::SquareDistance ( const Point point,
float *  t = null 
) const

Member Data Documentation

◆ mDir

Point Ray::mDir

Normalized direction.

Definition at line 31 of file IceRay.h.

◆ mOrig

Point Ray::mOrig

Ray origin.

Definition at line 30 of file IceRay.h.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:07