WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Rect.h
1#ifndef _WINC_RECT
2#define _WINC_RECT
3
4namespace WXP {
5 struct Rect { /* Coordinate data structure */
6 float xmin;
7 float ymin;
8 float xmax;
9 float ymax;
11 int init();
12 Rect();
13 Rect( float x1, float y1, float x2, float y2 );
14 int set( float x1, float y1, float x2, float y2 );
15 int setu( float x1, float y1, float x2, float y2 );
17 inline float getXMin(){ return xmin; };
19 inline float getXMax(){ return xmax; };
21 inline float getYMin(){ return ymin; };
23 inline float getYMax(){ return ymax; };
24 int print();
25 };
26}
27#endif
All WXP classes fall under the WXP namespace.
Definition: Angle.h:4
This structure defines rectangle coordinates.
Definition: Rect.h:5
int setu(float x1, float y1, float x2, float y2)
Definition: Rect.cc:78
float ymin
Definition: Rect.h:7
float xmax
Definition: Rect.h:8
int print()
Definition: Rect.cc:89
float ymax
Definition: Rect.h:9
float xmin
Definition: Rect.h:6
Rect()
Definition: Rect.cc:18
float getXMin()
Definition: Rect.h:17
int init()
Definition: Rect.cc:36
int set(float x1, float y1, float x2, float y2)
Definition: Rect.cc:51
float getXMax()
Definition: Rect.h:19
float getYMin()
Definition: Rect.h:21
float getYMax()
Definition: Rect.h:23