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:
parent
01b491b16e
commit
16c1dbd25d
|
@ -21,7 +21,7 @@
|
||||||
-- a Rotation object
|
-- a Rotation object
|
||||||
-- a Vector (axis) and a float (angle)
|
-- a Vector (axis) and a float (angle)
|
||||||
-- two Vectors (rotation from/to vector)
|
-- 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:
|
-- four floats (Quaternion) where the quaternion is specified as:
|
||||||
q=xi+yj+zk+w, i.e. the last parameter is the real part
|
q=xi+yj+zk+w, i.e. the last parameter is the real part
|
||||||
</UserDocu>
|
</UserDocu>
|
||||||
|
@ -55,6 +55,7 @@
|
||||||
<UserDocu>
|
<UserDocu>
|
||||||
toEuler(Vector) -> list
|
toEuler(Vector) -> list
|
||||||
Get the Euler angles of this rotation
|
Get the Euler angles of this rotation
|
||||||
|
as yaw-pitch-roll in XY'Z'' convention
|
||||||
</UserDocu>
|
</UserDocu>
|
||||||
</Documentation>
|
</Documentation>
|
||||||
</Methode>
|
</Methode>
|
||||||
|
|
|
@ -430,7 +430,7 @@ Base::Placement Placement::getPlacementData() const
|
||||||
Base::Vector3d dir = getDirection();
|
Base::Vector3d dir = getDirection();
|
||||||
rot.setValue(Base::Vector3d(dir.x,dir.y,dir.z),Base::toRadians(ui->angle->value().getValue()));
|
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(
|
rot.setYawPitchRoll(
|
||||||
ui->yawAngle->value().getValue(),
|
ui->yawAngle->value().getValue(),
|
||||||
ui->pitchAngle->value().getValue(),
|
ui->pitchAngle->value().getValue(),
|
||||||
|
|
|
@ -338,7 +338,7 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Euler angles</string>
|
<string>Euler angles (XY'Z'')</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user