File: Interval.rst

package info (click to toggle)
imath 3.1.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,468 kB
  • sloc: cpp: 44,687; ansic: 171; sh: 153; python: 60; makefile: 32
file content (36 lines) | stat: -rw-r--r-- 747 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
..
  SPDX-License-Identifier: BSD-3-Clause
  Copyright Contributors to the OpenEXR Project.

Interval
########

.. code-block::

   #include <Imath/ImathInterval.h>
   
The ``Interval`` class template represents a scalar interval, with
predefined typedefs for ``short``, ``int``, ``float``, and ``double``.

An ``Interval`` is essentially a ``Box<T>`` that allows ``T`` to be a
scalar.

Example:

.. literalinclude:: ../examples/Interval.cpp
   :language: c++                 

.. doxygentypedef:: Intervals

.. doxygentypedef:: Intervali

.. doxygentypedef:: Intervalf

.. doxygentypedef:: Intervald

.. doxygenclass:: Imath::Interval
   :undoc-members:
   :members:

.. doxygenfunction:: operator<<(std::ostream& s, const Interval<T>& v)