java3d
  1. java3d
  2. JAVA3D-622

Matrix4*.setRotation(AxisAngle*) doesn't work if matrix is zero

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: not determined
    • Component/s: vecmath
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      622

      Description

      The method is supposed "set the rotational component (upper 3x3) of this matrix
      to the matrix equivalent values of the axis-angle argument; the other elements
      of this matrix are unchanged". But if initial matrix is zero, the modified
      matrix is zero too. I suppose the scaling stuff that javadoc is talking about is
      responsible for that ; but I think this method should set the rotational
      component even when initial values are zeros.

      Tested for Matrix4d and Matrix4f on 1.5.2 version and 1.6.0_2009-07-10 version.

      Easy workaround is to set matrix to identity before setting the rotational
      component.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            java3d-issues
            Reporter:
            jmax31
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: