libhomegear-base
0.7
Base library for Homegear and Homegear family modules.
|
Class defining a triangle. More...
#include <Math.h>
Public Member Functions | |
Triangle () | |
Triangle (const Point2D &a, const Point2D &b, const Point2D &c) | |
virtual | ~Triangle () |
Point2D | getA () const |
void | setA (Point2D value) |
void | setA (Point2D &value) |
Point2D | getB () const |
void | setB (Point2D value) |
void | setB (Point2D &value) |
Point2D | getC () const |
void | setC (Point2D value) |
void | setC (Point2D &value) |
double | distance (const Point2D &p, Point2D *closestPoint=nullptr) |
Calculates the distance of a point to the triangle. More... | |
Protected Attributes | |
Point2D | _a |
Point2D | _b |
Point2D | _c |
Class defining a triangle.
|
inline |
|
inline |
|
inlinevirtual |
Calculates the distance of a point to the triangle.
[in] | p | The point to check. |
[out] | closestPoint | (default nullptr) When specified, the closest point in/on the triangle is stored in this variable. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |