Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1157

problem with the rotation

Rank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • 3.3
    • 3.4
    • None
    • Windows 7, Eclipse, Java SE 1.7

    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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            cesFrank Frank A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment