Classes | |
| struct | common::RECTI |
| Prostokąt z liczb całkowitych. More... | |
| struct | common::RECTF |
| Prostokąt z 4 floatów. More... | |
Functions | |
| template<> | |
| ::RECT & | common::math_cast<::RECT, RECTI > (const RECTI &x) |
| Konwersja z common::RECTI do RECT z WinAPI. | |
| template<> | |
| RECTI & | common::math_cast< RECTI,::RECT > (const ::RECT &x) |
| Konwersja z RECT z WinAPI do common::RECTI. | |
| void | common::swap (RECTI &r1, RECTI &r2) |
| void | common::swap (RECTF &r1, RECTF &r2) |
| void | common::Mul (RECTI *out, const RECTI &rect, const POINT_ &v) |
| void | common::Mul (RECTF *out, const RECTF &rect, const VEC2 &v) |
| void | common::Div (RECTI *out, const RECTI &rect, const POINT_ &v) |
| void | common::Div (RECTF *out, const RECTF &rect, const VEC2 &v) |
| void | common::Mul (RECTI *inout, const POINT_ &v) |
| void | common::Mul (RECTF *inout, const VEC2 &v) |
| void | common::Div (RECTI *inout, const POINT_ &v) |
| void | common::Div (RECTF *inout, const VEC2 &v) |
| bool | common::PointInRect (const POINT_ &p, const RECTI &r) |
| Zwraca true, jeśli punkt należy do prostokąta. | |
| bool | common::PointInRect (const VEC2 &p, const RECTF &r) |
| bool | common::RectInRect (const RECTI &sr, const RECTI &r) |
| Zwraca true, jeśli prostokąt sr zawiera się w całości wewnątrz r. | |
| bool | common::RectInRect (const RECTF &sr, const RECTF &r) |
| bool | common::RectToRect (const RECTI &r1, const RECTI &r2) |
| Zwraca true, jeśli podane prostokąty zachodzą na siebie. | |
| bool | common::RectToRect (const RECTF &r1, const RECTF &r2) |
| bool | common::Intersection (RECTI *Out, const RECTI &r1, const RECTI &r2) |
| Jeśli prostokąty posiadają część wspólną, zwraca ją przez Out i zwraca true. | |
| bool | common::Intersection (RECTF *Out, const RECTF &r1, const RECTF &r2) |
| void | common::Union (RECTI *Out, const RECTI &r1, const RECTI &r2) |
| Zwraca prostokąt opisany na podanych dwóch prostokątach. | |
| void | common::Union (RECTF *Out, const RECTF &r1, const RECTF &r2) |
| void | common::Lerp (RECTF *out, const RECTF &v1, const RECTF &v2, float t) |
| void | common::ClosestPointInRect (POINT_ *Out, const RECTI &Rect, const POINT_ &p) |
| Wyznacza najbliższy punkt wewnątrz prostokąta względem punktu p. | |
| void | common::ClosestPointInRect (VEC2 *Out, const RECTF &Rect, const VEC2 &p) |
| Wyznacza najbliższy punkt wewnątrz prostokąta względem punktu p. | |
Variables | |
| const RECTI | common::RECTI_ZERO |
| const RECTI | common::RECTI_ZERO_ONE |
| const RECTI | common::RECTI_MINUS_ONE_ONE |
| const RECTI | common::RECTI_MAX |
| const RECTI | common::RECTI_INV_MAX |
| const RECTF | common::RECTF_ZERO |
| const RECTF | common::RECTF_ZERO_ONE |
| const RECTF | common::RECTF_MINUS_ONE_ONE |
| const RECTF | common::RECTF_MAX |
| Maximal possible rectangle: -FLT_MAX..FLT_MAX. | |
| const RECTF | common::RECTF_INV_MAX |
| Inverted maximal rectangle: FLT_MAX..-FLT_MAX. It's invalid. Use it to initialize rectangle for finding min-max. | |
| void common::ClosestPointInRect | ( | VEC2 * | Out, | |
| const RECTF & | Rect, | |||
| const VEC2 & | p | |||
| ) |
Wyznacza najbliższy punkt wewnątrz prostokąta względem punktu p.
Jeśli p leży wewnątrz tego prostokąta, zwrócone zostaje dokładnie p.
| void common::ClosestPointInRect | ( | POINT_ * | Out, | |
| const RECTI & | Rect, | |||
| const POINT_ & | p | |||
| ) |
Wyznacza najbliższy punkt wewnątrz prostokąta względem punktu p.
Jeśli p leży wewnątrz tego prostokąta, zwrócone zostaje dokładnie p.
| void common::Div | ( | RECTF * | inout, | |
| const VEC2 & | v | |||
| ) | [inline] |
| void common::Div | ( | RECTI * | inout, | |
| const POINT_ & | v | |||
| ) | [inline] |
| void common::Div | ( | RECTF * | out, | |
| const RECTF & | rect, | |||
| const VEC2 & | v | |||
| ) | [inline] |
| void common::Div | ( | RECTI * | out, | |
| const RECTI & | rect, | |||
| const POINT_ & | v | |||
| ) | [inline] |
| bool common::Intersection | ( | RECTF * | Out, | |
| const RECTF & | r1, | |||
| const RECTF & | r2 | |||
| ) | [inline] |
| bool common::Intersection | ( | RECTI * | Out, | |
| const RECTI & | r1, | |||
| const RECTI & | r2 | |||
| ) | [inline] |
Jeśli prostokąty posiadają część wspólną, zwraca ją przez Out i zwraca true.
| void common::Lerp | ( | RECTF * | out, | |
| const RECTF & | v1, | |||
| const RECTF & | v2, | |||
| float | t | |||
| ) | [inline] |
| RECTI& common::math_cast< RECTI,::RECT > | ( | const ::RECT & | x | ) | [inline] |
Konwersja z RECT z WinAPI do common::RECTI.
| ::RECT& common::math_cast<::RECT, RECTI > | ( | const RECTI & | x | ) | [inline] |
Konwersja z common::RECTI do RECT z WinAPI.
| void common::Mul | ( | RECTF * | inout, | |
| const VEC2 & | v | |||
| ) | [inline] |
| void common::Mul | ( | RECTI * | inout, | |
| const POINT_ & | v | |||
| ) | [inline] |
| void common::Mul | ( | RECTF * | out, | |
| const RECTF & | rect, | |||
| const VEC2 & | v | |||
| ) | [inline] |
| void common::Mul | ( | RECTI * | out, | |
| const RECTI & | rect, | |||
| const POINT_ & | v | |||
| ) | [inline] |
| bool common::PointInRect | ( | const VEC2 & | p, | |
| const RECTF & | r | |||
| ) | [inline] |
| bool common::PointInRect | ( | const POINT_ & | p, | |
| const RECTI & | r | |||
| ) | [inline] |
Zwraca true, jeśli punkt należy do prostokąta.
| bool common::RectInRect | ( | const RECTF & | sr, | |
| const RECTF & | r | |||
| ) | [inline] |
| bool common::RectInRect | ( | const RECTI & | sr, | |
| const RECTI & | r | |||
| ) | [inline] |
Zwraca true, jeśli prostokąt sr zawiera się w całości wewnątrz r.
| bool common::RectToRect | ( | const RECTF & | r1, | |
| const RECTF & | r2 | |||
| ) | [inline] |
| bool common::RectToRect | ( | const RECTI & | r1, | |
| const RECTI & | r2 | |||
| ) | [inline] |
Zwraca true, jeśli podane prostokąty zachodzą na siebie.
| void common::swap | ( | RECTF & | r1, | |
| RECTF & | r2 | |||
| ) | [inline] |
| void common::swap | ( | RECTI & | r1, | |
| RECTI & | r2 | |||
| ) | [inline] |
| void common::Union | ( | RECTF * | Out, | |
| const RECTF & | r1, | |||
| const RECTF & | r2 | |||
| ) | [inline] |
| void common::Union | ( | RECTI * | Out, | |
| const RECTI & | r1, | |||
| const RECTI & | r2 | |||
| ) | [inline] |
Zwraca prostokąt opisany na podanych dwóch prostokątach.
| const RECTF common::RECTF_INV_MAX |
Inverted maximal rectangle: FLT_MAX..-FLT_MAX. It's invalid. Use it to initialize rectangle for finding min-max.
| const RECTF common::RECTF_MAX |
Maximal possible rectangle: -FLT_MAX..FLT_MAX.
| const RECTF common::RECTF_MINUS_ONE_ONE |
| const RECTF common::RECTF_ZERO |
| const RECTF common::RECTF_ZERO_ONE |
| const RECTI common::RECTI_INV_MAX |
| const RECTI common::RECTI_MAX |
| const RECTI common::RECTI_MINUS_ONE_ONE |
| const RECTI common::RECTI_ZERO |
| const RECTI common::RECTI_ZERO_ONE |
1.6.1