2D Point with integer coords
More...
#include <src/math/intpoint.h>
2D Point with integer coords
Analog of WinAPI's POINT struct.
§ LoadZero()
| void Math::IntPoint::LoadZero |
( |
| ) |
|
|
inline |
Sets the zero point: (0,0)
§ Array() [1/2]
| int* Math::IntPoint::Array |
( |
| ) |
|
|
inline |
Returns the struct cast to int* array; use with care!
§ Array() [2/2]
| const int* Math::IntPoint::Array |
( |
| ) |
const |
|
inline |
Returns the struct cast to const int* array; use with care!
§ operator-()
| IntPoint Math::IntPoint::operator- |
( |
| ) |
const |
|
inline |
Returns the inverted point.
§ operator+=()
§ operator-=()
Subtracts the given point.
§ operator*=()
| const IntPoint& Math::IntPoint::operator*= |
( |
const float & |
right | ) |
|
|
inline |
Multiplies by given scalar.
§ operator/=()
| const IntPoint& Math::IntPoint::operator/= |
( |
const float & |
right | ) |
|
|
inline |
§ ToString()
| std::string Math::IntPoint::ToString |
( |
| ) |
const |
|
inline |
Returns a string "[x, y]".
§ operator+
§ operator-
§ operator* [1/2]
Multiplies point by scalar.
§ operator* [2/2]
Multiplies point by scalar.
§ operator/
The documentation for this struct was generated from the following file: