feisty meow concerns codebase  2.140
geometric::screen_point Class Reference

a simple class used to describe points on a graphics screen. More...

#include <screen_rectangle.h>

Inheritance diagram for geometric::screen_point:
Collaboration diagram for geometric::screen_point:

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
 
pointoperator+= (const point &arg2)
 
pointoperator-= (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...
 

Detailed Description

a simple class used to describe points on a graphics screen.

Definition at line 34 of file screen_rectangle.h.

Constructor & Destructor Documentation

◆ screen_point() [1/3]

geometric::screen_point::screen_point ( int  x = 0,
int  y = 0 
)
inline

Definition at line 37 of file screen_rectangle.h.

◆ screen_point() [2/3]

geometric::screen_point::screen_point ( int  r,
double_angle  theta 
)
inline

Definition at line 38 of file screen_rectangle.h.

◆ screen_point() [3/3]

geometric::screen_point::screen_point ( const point< int > &  original)
inline

Definition at line 39 of file screen_rectangle.h.

Member Function Documentation

◆ DEFINE_CLASS_NAME()

geometric::screen_point::DEFINE_CLASS_NAME ( "screen_point"  )

The documentation for this class was generated from the following file: