mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
Transform::SetRotationFromQuaternion takes const. (#9063)
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user