A class representing a ray in n-dimensional space. The class is parameterized by a PointConcept, which must provide the DIM constant and the [] operator for accessing the point coordinates.
More...
#include <vclib/space/core/ray.h>
|
|
using | PointType = PointT |
| | The type of point used to represent the origin and direction of the ray.
|
| |
|
using | ScalarType = PointT::ScalarType |
| | The scalar type of the ray.
|
| |
|
|
static const uint | DIM = PointT::DIM |
| | The dimensionality of the ray.
|
| |
|
|
PointT | mDirection |
| |
|
PointT | mOrigin |
| |
template<PointConcept PointT>
class vcl::Ray< PointT >
A class representing a ray in n-dimensional space. The class is parameterized by a PointConcept, which must provide the DIM constant and the [] operator for accessing the point coordinates.
- Template Parameters
-
| PointT | The type of the two endpoint points of the ray. |
◆ Ray()
template<PointConcept PointT>
Creates a ray with the given origin and direction.
- Parameters
-
| [in] | origin | The origin of the ray. |
| [in] | direction | The direction of the ray. |
◆ direction() [1/2]
template<PointConcept PointT>
| PointT & vcl::Ray< PointT >::direction |
( |
| ) |
|
|
inline |
Returns the direction of the ray.
- Returns
- A reference to the direction of the ray.
◆ direction() [2/2]
template<PointConcept PointT>
Returns the direction of the ray.
- Returns
- A reference to the direction of the ray.
◆ origin() [1/2]
template<PointConcept PointT>
Returns the origin of the ray.
- Returns
- A reference to the origin of the ray.
◆ origin() [2/2]
template<PointConcept PointT>
Returns the origin of the ray.
- Returns
- A const reference to the origin of the ray.
The documentation for this class was generated from the following file:
- vclib/core/include/vclib/space/core/ray.h