summaryrefslogtreecommitdiffstats
path: root/src/libnr/nr-coord.h
blob: 668e2b460088f390091c277e1556132958f105de (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
29
#ifndef SEEN_NR_COORD_H
#define SEEN_NR_COORD_H

namespace NR {

/**
 * A "real" type with sufficient precision for coordinates.
 *
 * You may safely assume that double (or even float) provides enough precision for storing
 * on-canvas points, and hence that double provides enough precision for dot products of
 * differences of on-canvas points.
 */
typedef double Coord;

} /* namespace NR */


#endif /* !SEEN_NR_COORD_H */

/*
  Local Variables:
  mode:c++
  c-file-style:"stroustrup"
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
  indent-tabs-mode:nil
  fill-column:99
  End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :