PixelLightAPI  .
Public Member Functions
PLMath::Ray Class Reference

Ray class (infinite length, in both directions) More...

#include <Ray.h>

List of all members.

Public Member Functions

 Ray ()
 Default constructor setting all position and direction components to 0.
 Ray (const Ray &cSource)
 Copy constructor.
 ~Ray ()
 Destructor.
Rayoperator= (const Ray &cSource)
 Copy operator.
void Set (const Vector3 &vLineStartPos, const Vector3 &vLineEndPos)
 Set the current ray using a line.
const Vector3GetPos () const
 Returns the current position.
void SetPos (float fX=0.0f, float fY=0.0f, float fZ=0.0f)
 Set the current position.
void SetPos (const Vector3 &vPos)
 Set the current position.
const Vector3GetDir () const
 Returns the ray direction.
void SetDir (float fX=0.0f, float fY=0.0f, float fZ=0.0f)
 Set the ray direction.
void SetDir (const Vector3 &vDir)
 Set the ray direction.

Detailed Description

Ray class (infinite length, in both directions)


Constructor & Destructor Documentation

PLMath::Ray::Ray ( ) [inline]

Default constructor setting all position and direction components to 0.

PLMath::Ray::Ray ( const Ray cSource) [inline]

Copy constructor.

Parameters:
[in]cSourceSource to copy from
PLMath::Ray::~Ray ( ) [inline]

Destructor.


Member Function Documentation

Ray & PLMath::Ray::operator= ( const Ray cSource) [inline]

Copy operator.

Parameters:
[in]cSourceSource to copy from
Returns:
Reference to this instance
void PLMath::Ray::Set ( const Vector3 vLineStartPos,
const Vector3 vLineEndPos 
) [inline]

Set the current ray using a line.

Parameters:
[in]vLineStartPosLine start position
[in]vLineEndPosLine end position
const Vector3 & PLMath::Ray::GetPos ( ) const [inline]

Returns the current position.

Returns:
Current position
void PLMath::Ray::SetPos ( float  fX = 0.0f,
float  fY = 0.0f,
float  fZ = 0.0f 
) [inline]

Set the current position.

Parameters:
[in]fXX component of the new position
[in]fYY component of the new position
[in]fZZ component of the new position
void PLMath::Ray::SetPos ( const Vector3 vPos) [inline]

Set the current position.

Parameters:
[in]vPosNew position
const Vector3 & PLMath::Ray::GetDir ( ) const [inline]

Returns the ray direction.

Returns:
Ray direction
void PLMath::Ray::SetDir ( float  fX = 0.0f,
float  fY = 0.0f,
float  fZ = 0.0f 
) [inline]

Set the ray direction.

Parameters:
[in]fXX component of the new direction vector
[in]fYY component of the new direction vector
[in]fZZ component of the new direction vector
void PLMath::Ray::SetDir ( const Vector3 vDir) [inline]

Set the ray direction.

Parameters:
[in]vDirNew ray direction

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


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:36
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported