ACF $AcfVersion:0$
TIMathFunction.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
6#include <istd/IPolymorphic.h>
7
8
9namespace imath
10{
11
12
16template <typename Argument, typename Result>
18{
19public:
20 typedef Argument ArgumentType;
21 typedef Result ResultType;
22
29 virtual bool GetValueAt(const Argument& argument, Result& result) const = 0;
36 virtual Result GetValueAt(const Argument& argument) const = 0;
37};
38
39
40// standard templatization
41
43
44
45} // namespace imath
46
47
Template interface for any mathematical function.
virtual bool GetValueAt(const Argument &argument, Result &result) const =0
Get function value for specified argument value.
virtual Result GetValueAt(const Argument &argument) const =0
Get function value for specified argument value.
Base interface for all used interfaces and implementations.
Package with mathematical functions and algebraical primitives.
TIMathFunction< double, double > IDoubleFunction