Field3D
|
00001 //----------------------------------------------------------------------------// 00002 00003 /* 00004 * Copyright (c) 2009 Sony Pictures Imageworks Inc 00005 * 00006 * All rights reserved. 00007 * 00008 * Redistribution and use in source and binary forms, with or without 00009 * modification, are permitted provided that the following conditions 00010 * are met: 00011 * 00012 * Redistributions of source code must retain the above copyright 00013 * notice, this list of conditions and the following disclaimer. 00014 * Redistributions in binary form must reproduce the above copyright 00015 * notice, this list of conditions and the following disclaimer in the 00016 * documentation and/or other materials provided with the 00017 * distribution. Neither the name of Sony Pictures Imageworks nor the 00018 * names of its contributors may be used to endorse or promote 00019 * products derived from this software without specific prior written 00020 * permission. 00021 * 00022 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00023 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00024 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 00025 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 00026 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 00027 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 00028 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00029 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00030 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 00031 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00032 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 00033 * OF THE POSSIBILITY OF SUCH DAMAGE. 00034 */ 00035 00036 //----------------------------------------------------------------------------// 00037 00038 #ifndef _INCLUDED_Field3D_StdMathLib_H_ 00039 #define _INCLUDED_Field3D_StdMathLib_H_ 00040 00041 #include <OpenEXR/half.h> 00042 #include <OpenEXR/ImathBox.h> 00043 #include <OpenEXR/ImathBoxAlgo.h> 00044 #include <OpenEXR/ImathColor.h> 00045 #include <OpenEXR/ImathMatrix.h> 00046 #include <OpenEXR/ImathVec.h> 00047 #include <OpenEXR/ImathRoots.h> 00048 #include <OpenEXR/ImathMatrixAlgo.h> 00049 #include <OpenEXR/ImathRandom.h> 00050 00051 //----------------------------------------------------------------------------// 00052 00053 #include "ns.h" 00054 00055 FIELD3D_NAMESPACE_OPEN 00056 00057 //----------------------------------------------------------------------------// 00058 00059 typedef ::half half; 00060 typedef Imath::V2i V2i; 00061 typedef Imath::V2d V2d; 00062 typedef Imath::C3f C3f; 00063 typedef Imath::V3i V3i; 00064 typedef Imath::Vec3<half> V3h; 00065 typedef Imath::V3f V3f; 00066 typedef Imath::V3d V3d; 00067 typedef Imath::Box3i Box3i; 00068 typedef Imath::Box3d Box3d; 00069 typedef Imath::M44d M44d; 00070 00071 #define FIELD3D_VEC3_T Imath::Vec3 00072 00073 #define FIELD3D_CLIP Imath::clip 00074 #define FIELD3D_LERP Imath::lerp 00075 #define FIELD3D_LERPFACTOR Imath::lerpfactor 00076 #define FIELD3D_EXTRACT_SHRT Imath::extractSHRT 00077 00078 #define FIELD3D_RAND48 Imath::Rand48 00079 00080 //----------------------------------------------------------------------------// 00081 00082 FIELD3D_NAMESPACE_HEADER_CLOSE 00083 00084 //----------------------------------------------------------------------------// 00085 00086 #endif // Include guard