[
https://issues.apache.org/jira/browse/MATH-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Frank Andernach updated MATH-1157:
----------------------------------
Description:
Hello,
this is my problem:
myAngle = 0.3490658503988659
The angle is created with FastMath.toRadians(20).
myRotation = new Rotation(RotationOrder.XYZ, 0, 0, myAngle);
if I use this on my Vector3D myVector = new Vector3D(4,4,4) with
myRotation.applyInverseTo(myVector) I'm get the result
x = 5.1268510564463075
y = 2.390689909840958
z = 3.999999999999999 (using the .getX() getY() and getZ() functions)
Im working with double values, but after the rotation just around the axis z,
the z value of my vector shouldn't have changed, but it does. Maybe it is not a
bug but a wrong result after a simple rotation, or did I use the rotation in a
wrong way?
Best regards
Frank
was:
Hello,
this is my problem:
myAngle = 0.3490658503988659
The angle is created with FastMath.toRadians(20).
myRotation = new Rotation(RotationOrder.XYZ, 0, 0, myAngle);
if I use this on my Vector3D myVector = new Vector3D(4,4,4) with
myRotation.applyInverseTo(myVector) I'm get the result
x = 5.1268510564463075
y = 2.390689909840958
z = 3.999999999999999
Im working with double values, but after the rotation just around the axis z,
the z value of my vector shouldn't have changed, but it does. Maybe it is not a
bug but a wrong result after a simple rotation, or did I use the rotation in a
wrong way?
Best regards
Frank
> problem with the rotation
> -------------------------
>
> Key: MATH-1157
> URL: https://issues.apache.org/jira/browse/MATH-1157
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 3.3
> Environment: Windows 7, Eclipse, Java SE 1.7
> Reporter: Frank Andernach
> Labels: newbie
> Fix For: 3.4
>
>
> Hello,
> this is my problem:
> myAngle = 0.3490658503988659
> The angle is created with FastMath.toRadians(20).
> myRotation = new Rotation(RotationOrder.XYZ, 0, 0, myAngle);
> if I use this on my Vector3D myVector = new Vector3D(4,4,4) with
> myRotation.applyInverseTo(myVector) I'm get the result
> x = 5.1268510564463075
> y = 2.390689909840958
> z = 3.999999999999999 (using the .getX() getY() and getZ() functions)
> Im working with double values, but after the rotation just around the axis z,
> the z value of my vector shouldn't have changed, but it does. Maybe it is not
> a bug but a wrong result after a simple rotation, or did I use the rotation
> in a wrong way?
> Best regards
> Frank
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)