From 16318e82a45974768dfa16056cfcfa02bba5ec4a Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Mon, 25 Apr 2022 13:53:59 +0200
Subject: [PATCH] [GL] Use Point3d::asEigenVector3d().

---
 GeoLib/AnalyticalGeometry-impl.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/GeoLib/AnalyticalGeometry-impl.h b/GeoLib/AnalyticalGeometry-impl.h
index 23d78c700e4..6838ed5a81f 100644
--- a/GeoLib/AnalyticalGeometry-impl.h
+++ b/GeoLib/AnalyticalGeometry-impl.h
@@ -77,8 +77,7 @@ void rotatePoints(Eigen::Matrix3d const& rot_mat, InputIterator pnts_begin,
 {
     for (auto it = pnts_begin; it != pnts_end; ++it)
     {
-        Eigen::Map<Eigen::Vector3d>((*it)->data()) =
-            rot_mat * (*it)->asEigenVector3d();
+        (*it)->asEigenVector3d() = rot_mat * (*it)->asEigenVector3d();
     }
 }
 
-- 
GitLab