Skip to content
Snippets Groups Projects
ISpatialFunction.h 801 B
Newer Older
  • Learn to ignore specific revisions
  • /**
     * \author Norihiro Watanabe
     * \date   2013-08-13
     *
    
     * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
    
     *            Distributed under a Modified BSD License.
     *              See accompanying file LICENSE.txt or
     *              http://www.opengeosys.org/project/license
     */
    
    
    #include "MathLib/Point3d.h"
    
    Dmitri Naumov's avatar
    Dmitri Naumov committed
     * \brief Interface class for any functions of spatial coordinates
     * \f$f(x,y,z)\f$
    
     */
    class ISpatialFunction
    {
    public:
    
        virtual ~ISpatialFunction() = default;
    
    
        /**
         * return a value at the given point
         * \param pnt  a point object
         * \return evaluated value
         */
        virtual double operator()(const MathLib::Point3d& pnt) const = 0;
    
    Dmitri Naumov's avatar
    Dmitri Naumov committed
    }  // namespace NumLib