Point2D.hpp
A simple class to track value pairs of any kind, optimized for points in 2D Space.
This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2021 Michigan State University MIT Software license; see doc/LICENSE.md
Note
For maximal efficiency, prefer SquareMagnitude() and SquareDistance() over Magnitude() and Distance() as the latter require a square-root.
Defines
-
INCLUDE_EMP_GEOMETRY_POINT2D_HPP_GUARD
-
template<typename TYPE = double>
class Point2D - #include <Point2D.hpp>