#include <Math.hpp>
Metody publiczne | |
| PLANE () | |
| PLANE (float a, float b, float c, float d) | |
| PLANE (const float *Arr) | |
| operator float * () | |
| operator const float * () const | |
| bool | operator== (const PLANE &p) const |
| bool | operator!= (const PLANE &p) const |
| PLANE | operator+ () const |
| PLANE | operator- () const |
| Zwraca płaszczyznę zwróconą w przeciwną stronę. | |
| PLANE | operator* (float s) const |
| PLANE | operator/ (float s) const |
| PLANE & | operator*= (float s) |
| PLANE & | operator/= (float s) |
Atrybuty publiczne | |
| float | a |
| float | b |
| float | c |
| float | d |
Reprezentuje płaszczyznę w przestrzeni 3D z jedną stroną dodatnią, a drugą ujemną. Opisana jest równaniem A x + B y + C z + D = 0. Wektor [A,B,C] to wektor normalny wskazujący w kierunku dodatniej półprzestrzeni. Jeśli płaszczyzna jest znormalizowana, wektor normalny jest znormalizowany, a D to odległość płaszczyzny od środka układu współrzędnych. Reprezentacja jako string to A,R,G,B np. "1,2,3,0.2". Płaszczyzna mająca a=b=c=0 (czyli stała ZERO) jest niepoprawna, zdegenerowana.
| common::PLANE::PLANE | ( | ) | [inline] |
| common::PLANE::PLANE | ( | float | a, | |
| float | b, | |||
| float | c, | |||
| float | d | |||
| ) | [inline] |
| common::PLANE::PLANE | ( | const float * | Arr | ) | [inline] |
| common::PLANE::operator float * | ( | ) | [inline] |
| common::PLANE::operator const float * | ( | ) | const [inline] |
| bool common::PLANE::operator== | ( | const PLANE & | p | ) | const [inline] |
| bool common::PLANE::operator!= | ( | const PLANE & | p | ) | const [inline] |
| PLANE common::PLANE::operator+ | ( | ) | const [inline] |
| PLANE common::PLANE::operator- | ( | ) | const [inline] |
Zwraca płaszczyznę zwróconą w przeciwną stronę.
| PLANE common::PLANE::operator* | ( | float | s | ) | const [inline] |
| PLANE common::PLANE::operator/ | ( | float | s | ) | const [inline] |
| PLANE& common::PLANE::operator*= | ( | float | s | ) | [inline] |
| PLANE& common::PLANE::operator/= | ( | float | s | ) | [inline] |
| float common::PLANE::a |
| float common::PLANE::b |
| float common::PLANE::c |
| float common::PLANE::d |
1.5.5