| 
    CeresEngine 0.2.0
    
   A game development framework 
   | 
 
Represents a capsule with a line segment and a radius. More...
#include <CeresEngine/Math/Geometry.hpp>
Public Member Functions | |
| TCapsule ()=default | |
| TCapsule (const TLineSegment< T > &segment, T radius) | |
| TRayIntersection< T > | intersects (const TRay< T > &ray) const | 
| Ray/capsule intersection.   | |
| T | getHeight () const | 
| Returns the height of the capsule.   | |
| TVector3< T > | getCenter () const | 
| Returns the center point of the capsule.   | |
Public Attributes | |
| TLineSegment< T > | segment | 
| T | radius = T(0.0) | 
Represents a capsule with a line segment and a radius.
      
  | 
  default | 
| Math::TCapsule< T >::TCapsule | ( | const TLineSegment< T > & | segment, | 
| T | radius | ||
| ) | 
      
  | 
  inline | 
Returns the center point of the capsule.
      
  | 
  inline | 
Returns the height of the capsule.
The height is the distance between centers of the hemispheres that form the capsule's ends.
| TRayIntersection< T > Math::TCapsule< T >::intersects | ( | const TRay< T > & | ray | ) | const | 
Ray/capsule intersection.
| T Math::TCapsule< T >::radius = T(0.0) | 
| TLineSegment<T> Math::TCapsule< T >::segment |