HatchitMath
Public Member Functions | List of all members
Hatchit::Math::Ray Class Reference

Public Member Functions

 Ray (Vector3 direction)
 Create a ray with an origin as 0,0,0 and a given direction. More...
 
 Ray (Vector3 origin, Vector3 direction)
 Create a ray with a given origin and direction. More...
 
Vector3 getOrigin ()
 Returns the origin of the ray. More...
 
Vector3 getDirection ()
 Returns the direction of the ray. More...
 
void setOrigin (Vector3 origin)
 Sets the origin of the ray. More...
 
void setDirection (Vector3 direction)
 Sets the direction of the ray. More...
 

Constructor & Destructor Documentation

Ray::Ray ( Vector3  direction)

Create a ray with an origin as 0,0,0 and a given direction.

Parameters
directionThe direction as a Vector3
Ray::Ray ( Vector3  origin,
Vector3  direction 
)

Create a ray with a given origin and direction.

Parameters
originThe origin as a Vector3
directionThe direction as a Vector3

Member Function Documentation

Vector3 Ray::getDirection ( )

Returns the direction of the ray.

Returns
The direction as a Vector3
Vector3 Ray::getOrigin ( )

Returns the origin of the ray.

Returns
The origin as a Vector3
void Ray::setDirection ( Vector3  direction)

Sets the direction of the ray.

Parameters
directionThe given direction as a Vector3
void Ray::setOrigin ( Vector3  origin)

Sets the origin of the ray.

Parameters
originThe given origin as a Vector3

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