RigsofRods
Soft-body Physics Simulation
Public Member Functions | Static Public Member Functions
Hydrax::Math Class Reference

Math class with some help funtions. More...

#include <Help.h>

Public Member Functions

 Math ()
 Constructor. More...
 
 ~Math ()
 Destructor. More...
 

Static Public Member Functions

static Ogre::Vector2 intersectionOfTwoLines (const Ogre::Vector2 &a, const Ogre::Vector2 &b, const Ogre::Vector2 &c, const Ogre::Vector2 &d)
 Find the intersection point of two lines. More...
 

Detailed Description

Math class with some help funtions.

Definition at line 102 of file Help.h.

Constructor & Destructor Documentation

◆ Math()

Hydrax::Math::Math ( )
inline

Constructor.

Definition at line 107 of file Help.h.

◆ ~Math()

Hydrax::Math::~Math ( )
inline

Destructor.

Definition at line 110 of file Help.h.

Member Function Documentation

◆ intersectionOfTwoLines()

Ogre::Vector2 Hydrax::Math::intersectionOfTwoLines ( const Ogre::Vector2 &  a,
const Ogre::Vector2 &  b,
const Ogre::Vector2 &  c,
const Ogre::Vector2 &  d 
)
static

Find the intersection point of two lines.

Parameters
aFirst line origin
bFirst line final
cFirst line origin
dFirst line final
Returns
Ogre::Vector2::ZERO if there isn't intersection, intersection point

Definition at line 29 of file Help.cpp.

+ Here is the caller graph for this function:

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