A Plane3 is a plane in space, with the equation: Ax + By + Cz + D = 0.
More...
#include <trigonometry.h>
|
| | Plane3 () |
| |
| | Plane3 (const Coord3 &, const Coord3 &, const Coord3 &) |
| |
| | Plane3 (const Coord3 &vec1, const Coord3 &, bool twovectors) |
| |
| | Plane3 (const TypeSet< Coord3 > &) |
| |
| | Plane3 (double, double, double, double) |
| |
| double | distanceToPoint (const Coord3 &, bool wichside=false) const |
| |
| Coord3 | getProjection (const Coord3 &pos) |
| |
| bool | intersectWith (const Line3 &, Coord3 &) const |
| |
| bool | intersectWith (const Plane3 &, Line3 &) const |
| |
| Coord3 | normal () const |
| |
| bool | onSameSide (const Coord3 &p1, const Coord3 &p2) |
| |
| bool | operator!= (const Plane3 &) const |
| |
| bool | operator== (const Plane3 &) const |
| |
| void | set (const Coord3 &, const Coord3 &, const Coord3 &) |
| |
| void | set (const Coord3 &vec1, const Coord3 &, bool twovectors) |
| |
| float | set (const TypeSet< Coord3 > &) |
| |
A Plane3 is a plane in space, with the equation: Ax + By + Cz + D = 0.
<>
◆ Plane3() [1/5]
◆ Plane3() [2/5]
| Plane3::Plane3 |
( |
double | , |
|
|
double | , |
|
|
double | , |
|
|
double | ) |
◆ Plane3() [3/5]
| Plane3::Plane3 |
( |
const Coord3 & | vec1, |
|
|
const Coord3 & | , |
|
|
bool | twovectors ) |
- Parameters
-
| vec1 | First vector |
| twovectors | Specifies if the second argument is a vector or a position |
◆ Plane3() [4/5]
◆ Plane3() [5/5]
◆ distanceToPoint()
| double Plane3::distanceToPoint |
( |
const Coord3 & | , |
|
|
bool | wichside = false ) const |
- Parameters
-
| wichside | if true, the distance along the normal will be returned, wich can be negative. |
◆ getProjection()
◆ intersectWith() [1/2]
| bool Plane3::intersectWith |
( |
const Line3 & | , |
|
|
Coord3 & | ) const |
Returns true if the plane intersects with the line. If it returns true, the Coord3 is set
◆ intersectWith() [2/2]
| bool Plane3::intersectWith |
( |
const Plane3 & | , |
|
|
Line3 & | ) const |
Returns true if the planes intersects. If it returns true, the Line3 is set
◆ normal()
| Coord3 Plane3::normal |
( |
| ) |
const |
|
inline |
◆ onSameSide()
| bool Plane3::onSameSide |
( |
const Coord3 & | p1, |
|
|
const Coord3 & | p2 ) |
Check p1, p2 are on the same side of the plane or not, will return true if one is on the plane.
◆ operator!=()
| bool Plane3::operator!= |
( |
const Plane3 & | | ) |
const |
◆ operator==()
| bool Plane3::operator== |
( |
const Plane3 & | | ) |
const |
◆ set() [1/3]
◆ set() [2/3]
| void Plane3::set |
( |
const Coord3 & | vec1, |
|
|
const Coord3 & | , |
|
|
bool | twovectors ) |
- Parameters
-
| vec1 | First vector |
| twovectors | Specifies if the second argument is a vector or a position |
◆ set() [3/3]
- Returns
- a value between 0-1 that indicates how well the points fit to a plane. 1 = perfect fit 0 = no fit
◆ A_
◆ B_
◆ C_
◆ D_