Code

fb3c574a61ef9be9f352df9443c965eed14d8c23
[inkscape.git] / src / libnr / nr-values.h
1 #ifndef __NR_VALUES_H__
2 #define __NR_VALUES_H__
4 /*
5  * Pixel buffer rendering library
6  *
7  * Authors:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *
10  * This code is in public domain
11  */
13 #include <libnr/nr-forward.h>
15 #define NR_EPSILON 1e-18
17 #define NR_HUGE   1e18
18 #define NR_HUGE_L (0x7fffffff)
19 #define NR_HUGE_S (0x7fff)
21 /*
22 The following predefined objects are for reference
23 and comparison.  They are defined in nr-values.cpp
24 */
25 extern NR::Matrix NR_MATRIX_IDENTITY;
26 extern NRRect   NR_RECT_EMPTY;
27 extern NRRectL  NR_RECT_L_EMPTY;
28 extern NRRectL  NR_RECT_S_EMPTY;
30 /** component_vectors[i] has 1.0 at position i, and 0.0 elsewhere
31     (i.e. in the other position). */
32 extern NR::Point const component_vectors[2];
34 #endif
36 /*
37   Local Variables:
38   mode:c++
39   c-file-style:"stroustrup"
40   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
41   indent-tabs-mode:nil
42   fill-column:99
43   End:
44 */
45 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :