/** * \file * \date Sep 3, 2013 * \brief Weighted point class. * * \copyright * Copyright (c) 2012-2022, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license */ #pragma once #include "TemplatePoint.h" namespace MathLib { template class TemplateWeightedPoint : public TemplatePoint { public: TemplateWeightedPoint(std::array const& x, W_T weight) : TemplatePoint(x), weight_(weight) {} W_T getWeight() const { return weight_; } private: W_T const weight_; }; using WeightedPoint1D = TemplateWeightedPoint; using WeightedPoint2D = TemplateWeightedPoint; using WeightedPoint3D = TemplateWeightedPoint; } // end namespace MathLib