Initial commit
This commit is contained in:
51
Lib/Include/CML/quaternion/quaternion_ops.h
Normal file
51
Lib/Include/CML/quaternion/quaternion_ops.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/* -*- C++ -*- ------------------------------------------------------------
|
||||
|
||||
Copyright (c) 2007 Jesse Anders and Demian Nave http://cmldev.net/
|
||||
|
||||
The Configurable Math Library (CML) is distributed under the terms of the
|
||||
Boost Software License, v1.0 (see cml/LICENSE for details).
|
||||
|
||||
*-----------------------------------------------------------------------*/
|
||||
/** @file
|
||||
* @brief Defines the linear quaternion ops.
|
||||
*/
|
||||
|
||||
#ifndef quaternion_ops_h
|
||||
#define quaternion_ops_h
|
||||
|
||||
#include <cml/et/scalar_ops.h>
|
||||
#include <cml/quaternion/quaternion_expr.h>
|
||||
#include <cml/quaternion/quatop_macros.h>
|
||||
|
||||
namespace cml {
|
||||
|
||||
CML_QUAT_UNIOP( operator+, et::OpPos)
|
||||
CML_QUATXPR_UNIOP( operator+, et::OpPos)
|
||||
|
||||
CML_QUAT_UNIOP( operator-, et::OpNeg)
|
||||
CML_QUATXPR_UNIOP( operator-, et::OpNeg)
|
||||
|
||||
CML_QUAT_QUAT_BINOP( operator+, et::OpAdd)
|
||||
CML_QUATXPR_QUAT_BINOP( operator+, et::OpAdd)
|
||||
CML_QUAT_QUATXPR_BINOP( operator+, et::OpAdd)
|
||||
CML_QUATXPR_QUATXPR_BINOP( operator+, et::OpAdd)
|
||||
|
||||
CML_QUAT_QUAT_BINOP( operator-, et::OpSub)
|
||||
CML_QUATXPR_QUAT_BINOP( operator-, et::OpSub)
|
||||
CML_QUAT_QUATXPR_BINOP( operator-, et::OpSub)
|
||||
CML_QUATXPR_QUATXPR_BINOP( operator-, et::OpSub)
|
||||
|
||||
CML_QUAT_SCALAR_BINOP( operator*, et::OpMul)
|
||||
CML_SCALAR_QUAT_BINOP( operator*, et::OpMul)
|
||||
CML_QUATXPR_SCALAR_BINOP( operator*, et::OpMul)
|
||||
CML_SCALAR_QUATXPR_BINOP( operator*, et::OpMul)
|
||||
|
||||
CML_QUAT_SCALAR_BINOP( operator/, et::OpDiv)
|
||||
CML_QUATXPR_SCALAR_BINOP( operator/, et::OpDiv)
|
||||
|
||||
} // namespace cml
|
||||
|
||||
#endif
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// vim:ft=cpp
|
||||
Reference in New Issue
Block a user