commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank A (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1157) problem with the rotation
Date Tue, 07 Oct 2014 14:19:33 GMT

    [ https://issues.apache.org/jira/browse/MATH-1157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14161921#comment-14161921
] 

Frank A commented on MATH-1157:
-------------------------------

Thanks for your fast and detailed answer. I'll mark the issue as "Not A Problem".

Best regards and greetings

> 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 A
>            Priority: Critical
>              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)

Mime
View raw message