SOFA API  59c939c2
Open source framework for multi-physics simuation
sofa::defaulttype::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 Vec3 & origin () const
 
const Vec3 & direction () const
 
Vec3 getPoint (double z) const
 
void setOrigin (const Vec3 &origin)
 
void setDirection (const Vec3 &direction)
 

Constructor details

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

Function details

const Vec3& sofa::defaulttype::Ray::direction ( ) const
inline
Vec3 sofa::defaulttype::Ray::getPoint ( double  z) const
inline
const Vec3& sofa::defaulttype::Ray::origin ( ) const
inline
void sofa::defaulttype::Ray::setDirection ( const Vec3 &  direction)
inline
void sofa::defaulttype::Ray::setOrigin ( const Vec3 &  origin)
inline