Module: HexaPDF::Utils
- Included in:
- Content::GraphicObject::EndpointArc, Layout::Box, Layout::Frame, Layout::WidthFromPolygon
- Defined in:
- lib/hexapdf/utils.rb,
lib/hexapdf/utils/bit_field.rb,
lib/hexapdf/utils/lru_cache.rb,
lib/hexapdf/utils/bit_stream.rb,
lib/hexapdf/utils/object_hash.rb,
lib/hexapdf/utils/math_helpers.rb,
lib/hexapdf/utils/graphics_helpers.rb,
lib/hexapdf/utils/pdf_doc_encoding.rb,
lib/hexapdf/utils/sorted_tree_node.rb
Overview
This module contains helper methods for the whole library.
Furthermore, it refines Numeric to provide #mm, #cm, and #inch methods.
Defined Under Namespace
Modules: BitField, GraphicsHelpers, MathHelpers, PDFDocEncoding, SortedTreeNode Classes: BitStreamReader, BitStreamWriter, LRUCache, ObjectHash
Constant Summary collapse
- 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.
1e-6