Math class with some help funtions.
More...
#include <Help.h>
|
| 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...
|
| |
Math class with some help funtions.
Definition at line 102 of file Help.h.
◆ Math()
Constructor.
Definition at line 107 of file Help.h.
◆ ~Math()
Destructor.
Definition at line 110 of file Help.h.
◆ 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
-
| a | First line origin |
| b | First line final |
| c | First line origin |
| d | First line final |
- Returns
- Ogre::Vector2::ZERO if there isn't intersection, intersection point
Definition at line 29 of file Help.cpp.
The documentation for this class was generated from the following files: