|
Hermes
|
#include <plane.h>
Public Member Functions | |
| Plane () | |
| default_color constructor | |
| Plane (normal3 n, real_t o) | |
| Plane (normal3 n, point3 p) | |
| point3 | closestPoint (const point3 &p) const |
| vec3 | project (const vec3 &v) const |
| projects v on plane | |
| vec3 | reflect (const vec3 &v) const |
| reflects v fron plane | |
| bool | onNormalSide (const point3 &p) const |
Static Public Member Functions | |
| static Plane | XY (bool invert_normal=false) |
| static Plane | XZ (bool invert_normal=false) |
| static Plane | YZ (bool invert_normal=false) |
Public Attributes | |
| normal3 | normal |
| real_t | offset |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Plane &p) |
Implements the equation normal X = offset.
Constructor
| n | [in] normal |
| o | [in] offset |
projects v on plane
| v |
reflects v fron plane
| v |
| invert_normal |
| invert_normal |
| invert_normal |