1#ifndef SXEVAL_OPERATIONS_GRADIANSTODEGREES_HPP
2#define SXEVAL_OPERATIONS_GRADIANSTODEGREES_HPP
15 static constexpr const char*
KEY =
"grad2deg";
39 this->_result = this->_args.front().get() *
static_cast<T
>(0.9);
The AOperation class is an abstract base class for operations in the SXEval library.
Definition AOperation.hpp:22
The IInstruction class is an interface for any instructions.
Definition IInstruction.hpp:21
Definition GradiansToDegrees.hpp:13
GradiansToDegrees(const std::vector< IInstruction< T > * > &args)
Definition GradiansToDegrees.hpp:19
void execute() override
Execute the operation.
Definition GradiansToDegrees.hpp:38
std::string toString() const override
String representation of the instruction.
Definition GradiansToDegrees.hpp:24
static constexpr const int ARITY_MIN
Definition GradiansToDegrees.hpp:16
static constexpr const char * KEY
Definition GradiansToDegrees.hpp:15
static constexpr const int ARITY_MAX
Definition GradiansToDegrees.hpp:17
Definition AOperation.hpp:8
std::enable_if< std::is_unsigned< T >::value, T >::type Absolute(const T &a)
Perform an absolute value operation on types T.
Definition utils.hpp:262