#include <Math.hpp>
Metody publiczne | |
| operator float * () | |
| operator const float * () const | |
| RECTF () | |
| RECTF (float left, float top, float right, float bottom) | |
| RECTF (const float *Arr) | |
| bool | operator== (const RECTF &r) const |
| bool | operator!= (const RECTF &r) const |
| RECTF | operator+ () const |
| RECTF | operator- () const |
| RECTF | operator+ (const VEC2 &p) const |
| RECTF | operator- (const VEC2 &p) const |
| RECTF | operator* (float s) const |
| RECTF | operator* (const VEC2 &s) const |
| RECTF & | operator+= (const VEC2 &p) |
| RECTF & | operator-= (const VEC2 &p) |
| RECTF & | operator*= (float s) |
| RECTF & | operator*= (const VEC2 &s) |
| bool | IsValid () const |
| void | Repair () |
| void | LeftTop (VEC2 *Out) const |
| void | RightBottom (VEC2 *Out) const |
| void | Extend (float d) |
| Powiększa prostokąt z każdej strony o podaną wartość. | |
| float | Width () const |
| Oblicza i zwraca szerokość. | |
| float | Height () const |
| Oblicza i zwraca wysokość. | |
| float | Diagonal () const |
| Oblicza i zwraca długość przekątnej. | |
| float | Field () const |
| Oblicza i zwraca pole powierzchni. | |
| void | SetWidth (float NewWidth) |
| Zmienia szerokość na podaną. | |
| void | SetHeight (float NewHeight) |
| Zmienia wysokość na podaną. | |
| void | SetSize (float NewWidth, float NewHeight) |
| Zmienia szerokość i wysokość na podaną. | |
| void | GetCenter (VEC2 *Out) const |
| Oblicza i zwraca pozycję środka. | |
| float | GetCenterX () const |
| float | GetCenterY () const |
| bool | Empty () const |
| Zwraca true, jeśli prostokąt jest zerowy. | |
| void | Clear () |
| Czyści prostokąt na zerowy. | |
Atrybuty publiczne | |
| float | left |
| float | top |
| float | right |
| float | bottom |
| common::RECTF::RECTF | ( | ) | [inline] |
| common::RECTF::RECTF | ( | float | left, | |
| float | top, | |||
| float | right, | |||
| float | bottom | |||
| ) | [inline] |
| common::RECTF::RECTF | ( | const float * | Arr | ) | [inline] |
| common::RECTF::operator float * | ( | ) | [inline] |
| common::RECTF::operator const float * | ( | ) | const [inline] |
| bool common::RECTF::operator== | ( | const RECTF & | r | ) | const [inline] |
| bool common::RECTF::operator!= | ( | const RECTF & | r | ) | const [inline] |
| RECTF common::RECTF::operator+ | ( | ) | const [inline] |
| RECTF common::RECTF::operator- | ( | ) | const [inline] |
| RECTF common::RECTF::operator* | ( | float | s | ) | const [inline] |
| RECTF& common::RECTF::operator*= | ( | float | s | ) | [inline] |
| bool common::RECTF::IsValid | ( | ) | const [inline] |
| void common::RECTF::Repair | ( | ) | [inline] |
| void common::RECTF::LeftTop | ( | VEC2 * | Out | ) | const [inline] |
| void common::RECTF::RightBottom | ( | VEC2 * | Out | ) | const [inline] |
| void common::RECTF::Extend | ( | float | d | ) | [inline] |
Powiększa prostokąt z każdej strony o podaną wartość.
| float common::RECTF::Width | ( | ) | const [inline] |
Oblicza i zwraca szerokość.
| float common::RECTF::Height | ( | ) | const [inline] |
Oblicza i zwraca wysokość.
| float common::RECTF::Diagonal | ( | ) | const [inline] |
Oblicza i zwraca długość przekątnej.
| float common::RECTF::Field | ( | ) | const [inline] |
Oblicza i zwraca pole powierzchni.
| void common::RECTF::SetWidth | ( | float | NewWidth | ) | [inline] |
Zmienia szerokość na podaną.
| void common::RECTF::SetHeight | ( | float | NewHeight | ) | [inline] |
Zmienia wysokość na podaną.
| void common::RECTF::SetSize | ( | float | NewWidth, | |
| float | NewHeight | |||
| ) | [inline] |
Zmienia szerokość i wysokość na podaną.
| void common::RECTF::GetCenter | ( | VEC2 * | Out | ) | const [inline] |
Oblicza i zwraca pozycję środka.
| float common::RECTF::GetCenterX | ( | ) | const [inline] |
| float common::RECTF::GetCenterY | ( | ) | const [inline] |
| bool common::RECTF::Empty | ( | ) | const [inline] |
Zwraca true, jeśli prostokąt jest zerowy.
| void common::RECTF::Clear | ( | ) | [inline] |
Czyści prostokąt na zerowy.
| float common::RECTF::left |
| float common::RECTF::top |
| float common::RECTF::right |
| float common::RECTF::bottom |
1.5.5