]>
Dogcows Code - chaz/yoink/blob - quaternion_ops.h
e973f9b7ed33307316fc4cad237049624f61d50f
1 /* -*- C++ -*- ------------------------------------------------------------
3 Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/
5 The Configurable Math Library (CML) is distributed under the terms of the
6 Boost Software License, v1.0 (see cml/LICENSE for details).
8 *-----------------------------------------------------------------------*/
10 * @brief Defines the linear quaternion ops.
13 #ifndef quaternion_ops_h
14 #define quaternion_ops_h
16 #include <cml/et/scalar_ops.h>
17 #include <cml/quaternion/quaternion_expr.h>
18 #include <cml/quaternion/quatop_macros.h>
22 CML_QUAT_UNIOP( operator+, et::OpPos
)
23 CML_QUATXPR_UNIOP( operator+, et::OpPos
)
25 CML_QUAT_UNIOP( operator-, et::OpNeg
)
26 CML_QUATXPR_UNIOP( operator-, et::OpNeg
)
28 CML_QUAT_QUAT_BINOP( operator+, et::OpAdd
)
29 CML_QUATXPR_QUAT_BINOP( operator+, et::OpAdd
)
30 CML_QUAT_QUATXPR_BINOP( operator+, et::OpAdd
)
31 CML_QUATXPR_QUATXPR_BINOP( operator+, et::OpAdd
)
33 CML_QUAT_QUAT_BINOP( operator-, et::OpSub
)
34 CML_QUATXPR_QUAT_BINOP( operator-, et::OpSub
)
35 CML_QUAT_QUATXPR_BINOP( operator-, et::OpSub
)
36 CML_QUATXPR_QUATXPR_BINOP( operator-, et::OpSub
)
38 CML_QUAT_SCALAR_BINOP( operator*, et::OpMul
)
39 CML_SCALAR_QUAT_BINOP( operator*, et::OpMul
)
40 CML_QUATXPR_SCALAR_BINOP( operator*, et::OpMul
)
41 CML_SCALAR_QUATXPR_BINOP( operator*, et::OpMul
)
43 CML_QUAT_SCALAR_BINOP( operator/, et::OpDiv
)
44 CML_QUATXPR_SCALAR_BINOP( operator/, et::OpDiv
)
50 // -------------------------------------------------------------------------
This page took 0.040531 seconds and 3 git commands to generate.