From e598f608fe620e88689efdff615beb4bc761d697 Mon Sep 17 00:00:00 2001 From: David Cosgrove Date: Sat, 24 Jan 2026 06:18:41 +0000 Subject: [PATCH] Transform::SetRotationFromQuaternion takes const. (#9063) --- Code/Geometry/Transform3D.cpp | 2 +- Code/Geometry/Transform3D.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Code/Geometry/Transform3D.cpp b/Code/Geometry/Transform3D.cpp index 29fe47c1c..56a3018d8 100644 --- a/Code/Geometry/Transform3D.cpp +++ b/Code/Geometry/Transform3D.cpp @@ -101,7 +101,7 @@ void Transform3D::SetRotation(double angle, const Point3D &axis) { this->SetRotation(c, s, axis); } -void Transform3D::SetRotationFromQuaternion(double quaternion[4]) { +void Transform3D::SetRotationFromQuaternion(const double quaternion[4]) { double q00 = quaternion[0] * quaternion[0]; double q11 = quaternion[1] * quaternion[1]; double q22 = quaternion[2] * quaternion[2]; diff --git a/Code/Geometry/Transform3D.h b/Code/Geometry/Transform3D.h index 4cccab6f8..c6acee8b9 100644 --- a/Code/Geometry/Transform3D.h +++ b/Code/Geometry/Transform3D.h @@ -72,7 +72,7 @@ class RDKIT_RDGEOMETRYLIB_EXPORT Transform3D void SetRotation(double cosT, double sinT, const Point3D &axis); //! Set the rotation matrix from a quaternion - void SetRotationFromQuaternion(double quaternion[4]); + void SetRotationFromQuaternion(const double quaternion[4]); //! Reflect the rotation void Reflect();