|
feisty meow concerns codebase
2.140
|
a simple class used to describe points on a graphics screen. More...
#include <screen_rectangle.h>


Public Member Functions | |
| screen_point (int x=0, int y=0) | |
| screen_point (int r, double_angle theta) | |
| screen_point (const point< int > &original) | |
| DEFINE_CLASS_NAME ("screen_point") | |
Public Member Functions inherited from geometric::point< int > | |
| point (int x=0, int y=0) | |
| point (int r, double_angle theta) | |
| DEFINE_CLASS_NAME ("point") | |
| void | set (int x, int y) |
| void | set (int r, double_angle theta) |
| int | x () const |
| int | y () const |
| int | r () const |
| double_angle | theta () const |
| point | rotate (const double_angle &theta) const |
| Rotates the point by the angle "theta". More... | |
| int | distance (const point &p2) const |
| Returns the distance between ‘this’ and the second point ‘p2’. More... | |
| point | operator- () const |
| return the additive inverse of the vector More... | |
| point | operator- (const point &arg2) const |
| int | magnitude () const |
| return the distance from the origin to this point. More... | |
| point | operator+ (const point &arg2) const |
| point & | operator+= (const point &arg2) |
| point & | operator-= (const point &arg2) |
| bool | operator== (const point &arg2) const |
| basis::astring | text_form () const |
| Prints out the two values (x and y) held in the point. More... | |
| bool | from_text (const basis::astring &text) |
| returns true if the "text" is successfully pulled into this point. More... | |
| virtual void | pack (basis::byte_array &packed_form) const |
| Creates a packed form of the packable object in "packed_form". More... | |
| virtual bool | unpack (basis::byte_array &packed_form) |
| Restores the packable from the "packed_form". More... | |
| int | packed_size () const |
| Estimates the space needed for the packed structure. More... | |
a simple class used to describe points on a graphics screen.
Definition at line 34 of file screen_rectangle.h.
|
inline |
Definition at line 37 of file screen_rectangle.h.
|
inline |
Definition at line 38 of file screen_rectangle.h.
|
inline |
Definition at line 39 of file screen_rectangle.h.
| geometric::screen_point::DEFINE_CLASS_NAME | ( | "screen_point" | ) |