WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Point.h
1#ifndef _WINC_POINT
2#define _WINC_POINT
3
4namespace WXP {
5 struct Point { /* Coordinate data structure */
6 float x;
7 float y;
8 float z;
10 int init();
11 Point();
12 Point( float rx, float ry );
13 Point( float rx, float ry, float rz );
14 int set( float rx, float ry );
15 int offset( float rx, float ry );
16 int set( float rx, float ry, float rz );
18 inline int set( Point &pt ){ *this = pt; return 1; };
20 inline float getX(){ return x; };
22 inline float getY(){ return y; };
23 int print();
24
25 static Point interp( Point pt1, Point pt2, float d );
26 };
27}
28#endif
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct sets a 3D point (x, y, z)
Definition Point.h:5
static Point interp(Point pt1, Point pt2, float d)
Definition Point.cc:94
float z
Definition Point.h:8
float x
Definition Point.h:6
float y
Definition Point.h:7
int print()
Definition Point.cc:105
float getY()
Definition Point.h:22
int init()
Definition Point.cc:18
int set(float rx, float ry)
Definition Point.cc:58
float getX()
Definition Point.h:20
int offset(float rx, float ry)
Definition Point.cc:69
Point()
Definition Point.cc:28
int set(Point &pt)
Definition Point.h:18