imath/3.1.11

Imath is a C++ and python library of 2D and 3D vector, matrix, and math operations for computer graphics.
Recipe info
2024-03-26

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
imath/3.1.11

Using imath

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
imath/3.1.11
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("imath/3.1.11")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): Imath
  • CMake target name(s): Imath::Imath
  • imath_lib => Imath::Imath
    imath_config => Imath::ImathConfig
    
  • pkg-config file name(s): Imath.pc
  • imath_lib => Imath.pc
    imath_config => imath-imath_config.pc
    

A simple use case using the CMake file name and the global target:

# ...
find_package(Imath REQUIRED)
# ...
target_link_libraries(YOUR_TARGET Imath::Imath)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the imath homepage listed above:

#include "Imath/ImathBox.h"
#include "Imath/ImathBoxAlgo.h"
#include "Imath/ImathColor.h"
#include "Imath/ImathColorAlgo.h"
#include "Imath/ImathConfig.h"
#include "Imath/ImathEuler.h"
#include "Imath/ImathExport.h"
#include "Imath/ImathForward.h"
#include "Imath/ImathFrame.h"
#include "Imath/ImathFrustum.h"
#include "Imath/ImathFrustumTest.h"
#include "Imath/ImathFun.h"
#include "Imath/ImathGL.h"
#include "Imath/ImathGLU.h"
#include "Imath/ImathInt64.h"
#include "Imath/ImathInterval.h"
#include "Imath/ImathLine.h"
#include "Imath/ImathLineAlgo.h"
#include "Imath/ImathMath.h"
#include "Imath/ImathMatrix.h"
#include "Imath/ImathMatrixAlgo.h"
#include "Imath/ImathNamespace.h"
#include "Imath/ImathPlane.h"
#include "Imath/ImathPlatform.h"
#include "Imath/ImathQuat.h"
#include "Imath/ImathRandom.h"
#include "Imath/ImathRoots.h"
#include "Imath/ImathShear.h"
#include "Imath/ImathSphere.h"
#include "Imath/ImathTypeTraits.h"
#include "Imath/ImathVec.h"
#include "Imath/ImathVecAlgo.h"
#include "Imath/half.h"
#include "Imath/halfFunction.h"
#include "Imath/halfLimits.h"