Finalization of axial shading

This commit is contained in:
Jakub Melka
2019-08-31 14:37:18 +02:00
parent 7e2d1b266f
commit 36a071886b
10 changed files with 467 additions and 13 deletions

View File

@ -42,12 +42,18 @@ using PDFReal = double;
constexpr PDFInteger PDF_INTEGER_MIN = std::numeric_limits<int64_t>::min() / 100;
constexpr PDFInteger PDF_INTEGER_MAX = std::numeric_limits<int64_t>::max() / 100;
constexpr PDFReal PDF_EPSILON = 0.000001;
static constexpr bool isValidInteger(PDFInteger integer)
{
return integer >= PDF_INTEGER_MIN && integer <= PDF_INTEGER_MAX;
}
static inline bool isZero(PDFReal value)
{
return std::fabs(value) < PDF_EPSILON;
}
/// This structure represents a reference to the object - consisting of the
/// object number, and generation number.
struct PDFObjectReference