![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cPoint2.h>
Public Member Functions | |
| cPoint2i () | |
| cPoint2i (int x, int y) | |
| cPoint2i (const SUPER_t &pt) | |
Public Member Functions inherited from GrayLib::cVecT2< int > | |
| cVecT2 () noexcept | |
| cVecT2 (const SUPER_t &v) noexcept | |
| cVecT2 (const int *pVals) | |
| cVecT2 (int n0, int n1) noexcept | |
| const int & | get_X () const noexcept |
| const int & | get_Y () const noexcept |
Public Member Functions inherited from GrayLib::cVecTC< int, 2, cVecT2< int > > | |
| int * | get_T () noexcept |
| const int * | get_CT () const noexcept |
| const cVecT2< int > & | get_CR () const noexcept |
| operator const int * () const noexcept | |
| int | GetElem (int i) const noexcept |
| int | operator[] (int i) const noexcept |
| int & | operator[] (int i) |
| bool | isZero () const noexcept |
| COMPARE_t | Compare (const THIS_t &v2) const noexcept |
| bool | operator== (const THIS_t &v2) const noexcept |
| bool | operator!= (const THIS_t &v2) const noexcept |
| bool | IsNear (const THIS_t &v2, int fDist=(int) k_FLT_MIN2) const |
| int | get_MagnitudeSq () const noexcept |
| int | get_Magnitude () const noexcept |
| cVecT2< int > | operator- () const |
| cVecT2< int > | operator- (const THIS_t &v2) const |
| cVecT2< int > | get_Abs () const |
| cVecT2< int > | GetSum (const THIS_t &v2) const |
| cVecT2< int > | operator+ (const THIS_t &v2) const |
| cVecT2< int > | GetDiff (const THIS_t &v2) const |
| cVecT2< int > | GetScaled (int nScale) const |
| cVecT2< int > | operator* (int nScale) const |
| cVecT2< int > | operator/ (int nScale) const |
| cVecT2< int > | GetMul (const THIS_t &v2) const |
| cVecT2< int > | GetDiv (const THIS_t &v2) const |
| int | GetDistSq (const THIS_t &v2) const |
| int | GetDist (const THIS_t &v2) const |
| int | GetDot (const THIS_t &v2) const |
| cVecT2< int > | get_Normalized () const |
| operator int * () | |
| int & | RefElem (int i) noexcept |
| void | Set (const THIS_t &v) |
| void | SetZero () noexcept |
| int | SetNormalized (void) noexcept |
| bool | put_Magnitude (int nLength) |
| void | SetLerp (const THIS_t &a, const THIS_t &b, DVALUE_t t) |
| const cVecT2< int > & | operator+= (const THIS_t &v2) |
| const cVecT2< int > & | operator+= (int n) |
| const cVecT2< int > & | operator-= (const THIS_t &v2) noexcept |
| const cVecT2< int > & | operator-= (int n) noexcept |
| void | DoScale (int n) noexcept |
| const cVecT2< int > & | operator*= (int nScale) noexcept |
| cVecT2< int > & | operator*= (const THIS_t &v2) noexcept |
| const cVecT2< int > & | operator/= (int nScale) |
| cVecT2< int > & | operator/= (const THIS_t &v2) |
| void | DoMul (const THIS_t &v2) noexcept |
| void | DoDiv (const THIS_t &v2) |
Additional Inherited Members | |
Public Types inherited from GrayLib::cVecT2< int > | |
| typedef cVecT2< int > | THIS_t |
| typedef cVecTC< int, k_nDim, THIS_t > | SUPER_t |
Public Types inherited from GrayLib::cVecTC< int, 2, cVecT2< int > > | |
| typedef int | DVALUE_t |
| Dimension value type. More... | |
| typedef cVecTC< int, _IQTY, cVecT2< int > > | THIS_t |
Static Public Member Functions inherited from GrayLib::cVecTC< int, 2, cVecT2< int > > | |
| static int | GetDot (const THIS_t &v1, const THIS_t &v2) |
Public Attributes inherited from GrayLib::cVecT2< int > | |
| int | m_a [k_nDim] |
| int | m_x |
| int | m_y |
| int | x |
| int | y |
| union { | |
| TYPE m_a [k_nDim] | |
| struct { | |
| TYPE m_x | |
| TYPE m_y | |
| } | |
| struct { | |
| TYPE x | |
| TYPE y | |
| } | |
| }; | |
Static Public Attributes inherited from GrayLib::cVecTC< int, 2, cVecT2< int > > | |
| static const int | k_nDim |
Protected Member Functions inherited from GrayLib::cVecTC< int, 2, cVecT2< int > > | |
| cVecTC () | |
integer 2d point = _WIN32 POINT type. Compatible with MFC 2d CPoint. For GUI drawing.
|
inline |
|
inline |
|
inline |