| 
    CeresEngine 0.2.0
    
   A game development framework 
   | 
 
Represents a rectangle in three dimensional space. More...
#include <CeresEngine/Math/Geometry.hpp>
Public Member Functions | |
| TRect ()=default | |
| TRect (const TVector3< T > ¢er, const Array< TVector3< T >, 2 > &axes, const Array< T, 2 > &extents) | |
| Pair< Array< TVector3< T >, 2 >, T > | getNearestPoint (const TRay< T > &ray) const | 
| Find the nearest points of the provided ray and the rectangle.   | |
| Pair< TVector3< T >, T > | getNearestPoint (const TVector3< T > &point) const | 
| Find the nearest point on the rectangle to the provided point.   | |
| TRayIntersection< T > | intersects (const TRay< T > &ray) const | 
| Ray/rectangle intersection.   | |
| const TVector3< T > & | getCenter () const | 
| Gets the origin of the rectangle.   | |
| const TVector3< T > & | getAxisHorz () const | 
| Returns the rectangle's horizontal axis.   | |
| const TVector3< T > & | getAxisVert () const | 
| Returns the rectangle's vertical axis.   | |
| const T & | getExtentHorz () const | 
| Gets the extent of the rectangle along its horizontal axis.   | |
| const T & | getExtentVertical () const | 
| Gets the extent of the rectangle along its vertical axis.   | |
Private Attributes | |
| TVector3< T > | mCenter = TVector3<T>(T(0.0)) | 
| TVector3< T > | mAxisHorz = TVector3<T>(T(0.0)) | 
| TVector3< T > | mAxisVert = TVector3<T>(T(0.0)) | 
| T | mExtentHorz = T(0.0) | 
| T | mExtentVert = T(0.0) | 
Represents a rectangle in three dimensional space.
It is represented by two axes that extend from the specified origin. Axes should be perpendicular to each other and they extend in both positive and negative directions from the origin by the amount specified by extents.
      
  | 
  default | 
      
  | 
  inline | 
      
  | 
  inline | 
Returns the rectangle's horizontal axis.
      
  | 
  inline | 
Returns the rectangle's vertical axis.
      
  | 
  inline | 
Gets the origin of the rectangle.
      
  | 
  inline | 
Gets the extent of the rectangle along its horizontal axis.
      
  | 
  inline | 
Gets the extent of the rectangle along its vertical axis.
| Pair< Array< TVector3< T >, 2 >, T > Math::TRect< T >::getNearestPoint | ( | const TRay< T > & | ray | ) | const | 
Find the nearest points of the provided ray and the rectangle.
| Pair< TVector3< T >, T > Math::TRect< T >::getNearestPoint | ( | const TVector3< T > & | point | ) | const | 
Find the nearest point on the rectangle to the provided point.
| TRayIntersection< T > Math::TRect< T >::intersects | ( | const TRay< T > & | ray | ) | const | 
Ray/rectangle intersection.
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |