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();