quaternion_ops.h

Go to the documentation of this file.
00001 /* -*- C++ -*- ------------------------------------------------------------
00002  
00003 Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/
00004 
00005 The Configurable Math Library (CML) is distributed under the terms of the
00006 Boost Software License, v1.0 (see cml/LICENSE for details).
00007 
00008  *-----------------------------------------------------------------------*/
00013 #ifndef quaternion_ops_h
00014 #define quaternion_ops_h
00015 
00016 #include <cml/et/scalar_ops.h>
00017 #include <cml/quaternion/quaternion_expr.h>
00018 #include <cml/quaternion/quatop_macros.h>
00019 
00020 namespace cml {
00021 
00022 CML_QUAT_UNIOP(    operator+, et::OpPos)
00023 CML_QUATXPR_UNIOP( operator+, et::OpPos)
00024 
00025 CML_QUAT_UNIOP(    operator-, et::OpNeg)
00026 CML_QUATXPR_UNIOP( operator-, et::OpNeg)
00027 
00028 CML_QUAT_QUAT_BINOP(       operator+, et::OpAdd)
00029 CML_QUATXPR_QUAT_BINOP(    operator+, et::OpAdd)
00030 CML_QUAT_QUATXPR_BINOP(    operator+, et::OpAdd)
00031 CML_QUATXPR_QUATXPR_BINOP( operator+, et::OpAdd)
00032 
00033 CML_QUAT_QUAT_BINOP(       operator-, et::OpSub)
00034 CML_QUATXPR_QUAT_BINOP(    operator-, et::OpSub)
00035 CML_QUAT_QUATXPR_BINOP(    operator-, et::OpSub)
00036 CML_QUATXPR_QUATXPR_BINOP( operator-, et::OpSub)
00037 
00038 CML_QUAT_SCALAR_BINOP(    operator*, et::OpMul)
00039 CML_SCALAR_QUAT_BINOP(    operator*, et::OpMul)
00040 CML_QUATXPR_SCALAR_BINOP( operator*, et::OpMul)
00041 CML_SCALAR_QUATXPR_BINOP( operator*, et::OpMul)
00042 
00043 CML_QUAT_SCALAR_BINOP(    operator/, et::OpDiv)
00044 CML_QUATXPR_SCALAR_BINOP( operator/, et::OpDiv)
00045 
00046 } // namespace cml
00047 
00048 #endif
00049 
00050 // -------------------------------------------------------------------------
00051 // vim:ft=cpp

Generated on Sat Jul 18 19:35:31 2009 for CML 1.0 by  doxygen 1.5.9