Jet  v1.3.3
Public Member Functions | Public Attributes | List of all members
jet::Ray< T, 3 > Class Template Referencefinal

Class for 2-D ray. More...

#include <jet/ray3.h>

Public Member Functions

 Ray ()
 Constructs an empty ray that points (1, 0, 0) from (0, 0, 0). More...
 
 Ray (const Vector3< T > &newOrigin, const Vector3< T > &newDirection)
 Constructs a ray with given origin and riection. More...
 
 Ray (const Ray &other)
 Copy constructor. More...
 
Vector3< T > pointAt (T t) const
 Returns a point on the ray at distance t. More...
 

Public Attributes

Vector3< T > origin
 The origin of the ray. More...
 
Vector3< T > direction
 The direction of the ray. More...
 

Detailed Description

template<typename T>
class jet::Ray< T, 3 >

Class for 2-D ray.

Template Parameters
TThe value type.

Constructor & Destructor Documentation

◆ Ray() [1/3]

template<typename T >
jet::Ray< T, 3 >::Ray ( )

Constructs an empty ray that points (1, 0, 0) from (0, 0, 0).

◆ Ray() [2/3]

template<typename T >
jet::Ray< T, 3 >::Ray ( const Vector3< T > &  newOrigin,
const Vector3< T > &  newDirection 
)

Constructs a ray with given origin and riection.

◆ Ray() [3/3]

template<typename T >
jet::Ray< T, 3 >::Ray ( const Ray< T, 3 > &  other)

Copy constructor.

Member Function Documentation

◆ pointAt()

template<typename T >
Vector3<T> jet::Ray< T, 3 >::pointAt ( t) const

Returns a point on the ray at distance t.

Member Data Documentation

◆ direction

template<typename T >
Vector3<T> jet::Ray< T, 3 >::direction

The direction of the ray.

◆ origin

template<typename T >
Vector3<T> jet::Ray< T, 3 >::origin

The origin of the ray.


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