COSC-4P80-Assignment-3/include/assign3/functions.h

40 lines
1.2 KiB
C
Raw Normal View History

2024-11-04 20:03:12 -05:00
#pragma once
/*
* Copyright (C) 2024 Brett Terpstra
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef COSC_4P80_ASSIGNMENT_3_FUNCTIONS_H
#define COSC_4P80_ASSIGNMENT_3_FUNCTIONS_H
#include <assign3/fwdecl.h>
namespace assign3
{
struct topology_function_t
{
[[nodiscard]] virtual Scalar call(Scalar dist, Scalar r) const = 0;
};
struct gaussian_function_t : public topology_function_t
{
[[nodiscard]] Scalar call(Scalar dist, Scalar r) const final;
};
}
#endif //COSC_4P80_ASSIGNMENT_3_FUNCTIONS_H