{"action":"opened","issue":{"url":"https://api.github.com/repos/Samsung/GearVRf/issues/46","labels_url":"https://api.github.com/repos/Samsung/GearVRf/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/Samsung/GearVRf/issues/46/comments","events_url":"https://api.github.com/repos/Samsung/GearVRf/issues/46/events","html_url":"https://github.com/Samsung/GearVRf/issues/46","id":76497596,"number":46,"title":"GVRTransform::getRotationPitch - Result is NaN","user":{"login":"santhyago","id":3882740,"avatar_url":"https://avatars.githubusercontent.com/u/3882740?v=3","gravatar_id":"","url":"https://api.github.com/users/santhyago","html_url":"https://github.com/santhyago","followers_url":"https://api.github.com/users/santhyago/followers","following_url":"https://api.github.com/users/santhyago/following{/other_user}","gists_url":"https://api.github.com/users/santhyago/gists{/gist_id}","starred_url":"https://api.github.com/users/santhyago/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/santhyago/subscriptions","organizations_url":"https://api.github.com/users/santhyago/orgs","repos_url":"https://api.github.com/users/santhyago/repos","events_url":"https://api.github.com/users/santhyago/events{/privacy}","received_events_url":"https://api.github.com/users/santhyago/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-14T21:33:46Z","updated_at":"2015-05-14T21:33:46Z","closed_at":null,"body":"We think that **pitch** value must be **between 0 and 360**, but the method is returning **NaN**.\r\n\r\n```\r\n    mSceneObject.getTransform().setRotation(1.0f,\r\n    BoundsValues.getFloatList().get(0),\r\n    BoundsValues.getFloatList().get(0),\r\n    BoundsValues.getFloatList().get(0));\r\n\r\n    float pitch = mSceneObject.getTransform().getRotationPitch();\r\n    boolean result = (pitch >= 0) && (pitch <= 360);\r\n    assertTrue(\"Pitch 1: \" + pitch, result);\r\n```\r\nThe first time, **pitch** gets a *\"valid\"* value (*1.63E-43*, I don't know if this is a valid value, but is in the range).\r\n```\r\n    mSceneObject.getTransform().setRotation(1.0f,\r\n    BoundsValues.getFloatList().get(1),\r\n    BoundsValues.getFloatList().get(1),\r\n    BoundsValues.getFloatList().get(1));\r\n\r\n    pitch = mSceneObject.getTransform().getRotationPitch();\r\n    result = (pitch >= 0) && (pitch <= 360);\r\n    assertTrue(\"Pitch 2: \" + pitch, result);\r\n```\r\nThe second time, with these values, **pitch** gets a **NaN** as value."}}