From a3e45f0e25130455f20d02d5bc98654a00fb4788 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Thu, 16 Jun 2016 12:18:02 +0200 Subject: [PATCH] [MaL] Add MathLib::Point3d ORIGIN. --- MathLib/Point3d.cpp | 17 +++++++++++++++++ MathLib/Point3d.h | 1 + 2 files changed, 18 insertions(+) create mode 100644 MathLib/Point3d.cpp diff --git a/MathLib/Point3d.cpp b/MathLib/Point3d.cpp new file mode 100644 index 00000000000..f48d71324b6 --- /dev/null +++ b/MathLib/Point3d.cpp @@ -0,0 +1,17 @@ +/** + * \file + * + * \copyright + * Copyright (c) 2012-2016, 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 "Point3d.h" + +namespace MathLib +{ +extern const Point3d ORIGIN{ {{0.0, 0.0, 0.0}} }; +} diff --git a/MathLib/Point3d.h b/MathLib/Point3d.h index 5d19c81b771..e4797cc3786 100644 --- a/MathLib/Point3d.h +++ b/MathLib/Point3d.h @@ -23,6 +23,7 @@ namespace MathLib { typedef MathLib::TemplatePoint<double,3> Point3d; +extern const Point3d ORIGIN; /** * rotation of points * @param mat a rotation matrix -- GitLab