|
MathLib
|
Operators | |
| constexpr BasicDual< T > | operator* (const BasicDual< T > &left, const BasicDual< T > &right) |
| Defines multiplication of two Duals. | |
| template<std::floating_point OT = double> | |
| constexpr BasicDual< T > | operator* (OT scalar, const BasicDual< T > &d) |
| template<std::floating_point OT = double> | |
| constexpr BasicDual< T > | operator* (const BasicDual< T > &d, OT scalar) |
| constexpr BasicDual< T > | operator/ (const BasicDual< T > &left, const BasicDual< T > &right) |
| Defines division of two Duals. | |
| template<std::floating_point OT = double> | |
| constexpr BasicDual< T > | operator/ (OT scalar, const BasicDual< T > &d) |
| template<std::floating_point OT = double> | |
| constexpr BasicDual< T > | operator/ (const BasicDual< T > &left, OT scalar) |
| constexpr BasicDual< T > | operator+ (const BasicDual< T > &left, const BasicDual< T > &right) |
| Defines addition of two Duals. | |
| template<std::floating_point OT = double> | |
| constexpr BasicDual< T > | operator+ (OT scalar, const BasicDual< T > &d) |
| Defines addition of a floating-point scalar and a Dual. | |
| template<std::floating_point OT = double> | |
| constexpr BasicDual< T > | operator+ (const BasicDual< T > &left, OT scalar) |
| Defines addition of a Dual and a floating-point scalar. | |
| constexpr BasicDual< T > | operator- (const BasicDual< T > &left, const BasicDual< T > &right) |
| Defines subtraction of two Duals. | |
| template<std::floating_point OT = double> | |
| constexpr BasicDual< T > | operator- (OT scalar, const BasicDual< T > &d) |
| Defines subtraction of a floating-point scalar and a Dual. | |
| template<std::floating_point OT = double> | |
| constexpr BasicDual< T > | operator- (const BasicDual< T > &left, OT scalar) |
| Defines subtraction of a Dual and a floating-point scalar. | |
|
friend |
#include <lib/include/Math/math/Dual.hpp>
Defines multiplication of a BasicDual and a floating-point scalar
T is NOT a floating-point type? In other parts of the library, we work with a BasicDual<BasicQuaternion<T>>, so T would be a BasicQuaternion<?> and thus, T(scalar) would be constructing a BasicQuaternion from a scalar value.
|
friend |
#include <lib/include/Math/math/Dual.hpp>
Defines multiplication of two Duals.
|
friend |
#include <lib/include/Math/math/Dual.hpp>
Defines multiplication of a floating-point scalar and a BasicDual
T is NOT a floating-point type? In other parts of the library, we work with a BasicDual<BasicQuaternion<T>>, so T would be a BasicQuaternion<?> and thus, T(scalar) would be constructing a BasicQuaternion from a scalar value.
|
friend |
#include <lib/include/Math/math/Dual.hpp>
Defines addition of two Duals.
|
friend |
#include <lib/include/Math/math/Dual.hpp>
Defines addition of a Dual and a floating-point scalar.
|
friend |
#include <lib/include/Math/math/Dual.hpp>
Defines addition of a floating-point scalar and a Dual.
|
friend |
#include <lib/include/Math/math/Dual.hpp>
Defines subtraction of two Duals.
|
friend |
#include <lib/include/Math/math/Dual.hpp>
Defines subtraction of a Dual and a floating-point scalar.
|
friend |
#include <lib/include/Math/math/Dual.hpp>
Defines subtraction of a floating-point scalar and a Dual.
|
friend |
#include <lib/include/Math/math/Dual.hpp>
Defines division of two Duals.
|
friend |
#include <lib/include/Math/math/Dual.hpp>
Defines division of a Dual and a floating-point scalar
T is NOT a floating-point type? In other parts of the library, we work with a BasicDual<BasicQuaternion<T>>, so T would be a BasicQuaternion<?> and thus, T(scalar) would be constructing a BasicQuaternion from a scalar value.
|
friend |
#include <lib/include/Math/math/Dual.hpp>
Defines division of a floating-point scalar and a BasicDual
T is NOT a floating-point type? In other parts of the library, we work with a BasicDual<BasicQuaternion<T>>, so T would be a BasicQuaternion<?> and thus, T(scalar) would be constructing a BasicQuaternion from a scalar value.