module HexaPDF::Utils

This module contains helper methods for the whole library.

Furthermore, it refines Numeric to provide mm, cm, and inch methods.

Constants

EPSILON

The precision with which to compare floating point numbers.

This is chosen with respect to precision that is used for serializing floating point numbers.

Public Instance Methods

cm()

Intrepeting self as centimeters returns the equivalent number of points.

inch()

Intrepeting self as inches returns the equivalent number of points.

mm()

Intrepeting self as millimeters returns the equivalent number of points.