diff --git a/src/Base/RotationPy.xml b/src/Base/RotationPy.xml index 867c3c816..e510c39b9 100644 --- a/src/Base/RotationPy.xml +++ b/src/Base/RotationPy.xml @@ -21,7 +21,7 @@ -- a Rotation object -- a Vector (axis) and a float (angle) -- two Vectors (rotation from/to vector) - -- three floats (Euler angles) as yaw-pitch-roll + -- three floats (Euler angles) as yaw-pitch-roll in XY'Z'' convention -- four floats (Quaternion) where the quaternion is specified as: q=xi+yj+zk+w, i.e. the last parameter is the real part @@ -55,6 +55,7 @@ toEuler(Vector) -> list Get the Euler angles of this rotation + as yaw-pitch-roll in XY'Z'' convention diff --git a/src/Gui/Placement.cpp b/src/Gui/Placement.cpp index 1443f62bf..5b6d35929 100644 --- a/src/Gui/Placement.cpp +++ b/src/Gui/Placement.cpp @@ -430,7 +430,7 @@ Base::Placement Placement::getPlacementData() const Base::Vector3d dir = getDirection(); rot.setValue(Base::Vector3d(dir.x,dir.y,dir.z),Base::toRadians(ui->angle->value().getValue())); } - else if (index == 1) { + else if (index == 1) { // Euler angles (XY'Z'') rot.setYawPitchRoll( ui->yawAngle->value().getValue(), ui->pitchAngle->value().getValue(), diff --git a/src/Gui/Placement.ui b/src/Gui/Placement.ui index 7fc72b04f..0ce4827c6 100644 --- a/src/Gui/Placement.ui +++ b/src/Gui/Placement.ui @@ -338,7 +338,7 @@ - Euler angles + Euler angles (XY'Z'')