document the convention used for Euler angles (XY'Z'')

in the Placement dialog and the docstrings of the Rotation python class.
fixes #2007
This commit is contained in:
Sebastian Hoogen 2015-03-15 20:58:53 +01:00 committed by wmayer
parent 01b491b16e
commit 16c1dbd25d
3 changed files with 4 additions and 3 deletions

View File

@ -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
</UserDocu>
@ -55,6 +55,7 @@
<UserDocu>
toEuler(Vector) -> list
Get the Euler angles of this rotation
as yaw-pitch-roll in XY'Z'' convention
</UserDocu>
</Documentation>
</Methode>

View File

@ -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(),

View File

@ -338,7 +338,7 @@
</item>
<item>
<property name="text">
<string>Euler angles</string>
<string>Euler angles (XY'Z'')</string>
</property>
</item>
</widget>