1 #ifndef _KIPR_GEOMETRY_GEOMETRY_H_
2 #define _KIPR_GEOMETRY_GEOMETRY_H_
#define EXPORT_SYM
Definition: export.h:7
EXPORT_SYM rectangle create_rectangle(int ulx, int uly, int width, int height)
Create a rectangle object.
struct point3 point3
A 3D point; has x, y, and z.
struct point2 point2
A 2D point; has x and y.
EXPORT_SYM point3 create_point3(int x, int y, int z)
Create a point3 object.
struct rectangle rectangle
A rectangle object.
EXPORT_SYM point2 create_point2(int x, int y)
Create a point2 object.
A 2D point; has x and y.
Definition: geometry.h:15
int y
the y value of the point
Definition: geometry.h:17
int x
the x value of the point
Definition: geometry.h:16
A 3D point; has x, y, and z.
Definition: geometry.h:25
int z
the z value of the point
Definition: geometry.h:28
int x
the x value of the point
Definition: geometry.h:26
int y
the y value of the point
Definition: geometry.h:27
A rectangle object.
Definition: geometry.h:36
int ulx
the x value of the rectangle's upper left
Definition: geometry.h:37
int width
the width of the rectangle
Definition: geometry.h:39
int uly
the y value of the rectangle's upper left
Definition: geometry.h:38
int height
the height of the rectangle
Definition: geometry.h:40