blob: 4c7efc4787fb67bb029020ec6300481c7710baad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* Copyright (C) 1996, 1997, 1998 Aladdin Enterprises. All rights
reserved. Unauthorized use, copying, and/or distribution
prohibited. */
/* pccoord.h - centipoint coordinate structures for PCL */
#ifndef pccoord_INCLUDED
#define pccoord_INCLUDED
/*
* Following the PCL documentation, we represent coordinates internally in
* centipoints (1/7200").
*/
#if arch_sizeof_int == 2
typedef long coord;
#else
typedef int coord;
#endif
#define pcl_coord_scale 7200
#define inch2coord(v) ((coord)((v) * (coord)pcl_coord_scale))
#define coord2inch(c) ((c) / (float)pcl_coord_scale)
typedef struct coord_point_s {
coord x, y;
} coord_point_t;
#endif /* pccoord_INCLUDED */
|