#include <Point.hpp>
|
std::int32_t | X |
| The X-axis coordinate. More...
|
|
std::int32_t | Y |
| The Y-axis coordinate. More...
|
|
Definition at line 9 of file Point.hpp.
◆ Point() [1/3]
◆ Point() [2/3]
Point::Point |
( |
std::int32_t |
X, |
|
|
std::int32_t |
Y |
|
) |
| |
- Parameters
-
X | The X-axis coordinate |
Y | The Y-axis coordinate |
◆ Point() [3/3]
Point::Point |
( |
const Point & |
P | ) |
|
◆ ~Point()
◆ DistanceFrom()
double Point::DistanceFrom |
( |
const Point & |
P | ) |
const |
◆ InBox()
bool Point::InBox |
( |
const Box & |
B | ) |
const |
◆ InCircle()
bool Point::InCircle |
( |
const Point & |
P, |
|
|
std::int32_t |
Radius |
|
) |
| const |
- Parameters
-
P | The center of the circle |
Radius | The radius of the circle |
- Returns
- True if this lies within the circle
◆ IsNegative()
bool Point::IsNegative |
( |
| ) |
const |
- Returns
- True if either the x-axis or y-axis coordinate are negative
◆ IsPositive()
bool Point::IsPositive |
( |
| ) |
const |
- Returns
- True if the x-axis or y-axis coordinates are both positive
◆ OnScreen()
bool Point::OnScreen |
( |
| ) |
const |
- Returns
- True if the point is within the client canvas bounds
◆ operator bool()
Point::operator bool |
( |
| ) |
const |
- Returns
- True if this is not negative
- See also
- IsNegative
◆ operator!=()
bool Point::operator!= |
( |
const Point & |
P | ) |
const |
◆ operator+()
◆ operator+=()
◆ operator-()
◆ operator-=()
◆ operator==()
bool Point::operator== |
( |
const Point & |
P | ) |
const |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
OS, |
|
|
const Point & |
P |
|
) |
| |
|
friend |
The X-axis coordinate.
Definition at line 20 of file Point.hpp.
The Y-axis coordinate.
Definition at line 21 of file Point.hpp.
The documentation for this class was generated from the following file: