SOFA API  56988ca1
Open source framework for multi-physics simuation
sofa::type::Ray Class Reference

#include <Ray.h>

Detailed Description

Representation of rays. A ray is an infinite line starting at origin and going in some direction.

Public Member Functions

 Ray (const Vec3 &origin=Vec3(0, 0, 0), const Vec3 &direction=Vec3(0, 0, 0))
 
const Vec3origin () const
 
const Vec3direction () const
 
Vec3 getPoint (double z) const
 
void setOrigin (const Vec3 &origin)
 
void setDirection (const Vec3 &direction)
 

Constructor details

◆ Ray()

sofa::type::Ray::Ray ( const Vec3 origin = Vec3(0,0,0),
const Vec3 direction = Vec3(0,0,0) 
)
inline

Function details

◆ direction()

const Vec3& sofa::type::Ray::direction ( ) const
inline

◆ getPoint()

Vec3 sofa::type::Ray::getPoint ( double  z) const
inline

◆ origin()

const Vec3& sofa::type::Ray::origin ( ) const
inline

◆ setDirection()

void sofa::type::Ray::setDirection ( const Vec3 direction)
inline

◆ setOrigin()

void sofa::type::Ray::setOrigin ( const Vec3 origin)
inline