From issues-return-27317-apmail-commons-issues-archive=commons.apache.org@commons.apache.org Tue Jun 5 18:30:24 2012 Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9ABEAC3C4 for ; Tue, 5 Jun 2012 18:30:24 +0000 (UTC) Received: (qmail 58272 invoked by uid 500); 5 Jun 2012 18:30:24 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 58149 invoked by uid 500); 5 Jun 2012 18:30:24 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 57949 invoked by uid 99); 5 Jun 2012 18:30:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 18:30:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id D35CC140BEF for ; Tue, 5 Jun 2012 18:30:23 +0000 (UTC) Date: Tue, 5 Jun 2012 18:30:23 +0000 (UTC) From: "Luc Maisonobe (JIRA)" To: issues@commons.apache.org Message-ID: <1546816006.40801.1338921023868.JavaMail.jiratomcat@issues-vm> In-Reply-To: <858576415.38824.1338888683240.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Resolved] (MATH-801) Quaternion not normalized after construction MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luc Maisonobe resolved MATH-801. -------------------------------- Resolution: Fixed Fix Version/s: 3.1 Fixed in subversion repository as of r1346513. Thanks for the report. > Quaternion not normalized after construction > -------------------------------------------- > > Key: MATH-801 > URL: https://issues.apache.org/jira/browse/MATH-801 > Project: Commons Math > Issue Type: Bug > Affects Versions: 3.0 > Reporter: DI COSTANZO > Fix For: 3.1 > > Attachments: RotationNotNormalised.txt > > > The use of the Rotation(Vector3D u1,Vector3D u2,Vector3D v1,Vector3D v2) constructor with normalized angle can apparently lead to un-normalized quaternion. > This case appeared to me with the following data : > u1 = (0.9999988431610581, -0.0015210774290851095, 0.0) > u2 = (0.0, 0.0, 1.0) > and > v1 = (0.9999999999999999, 0.0, 0.0) > v2 = (0.0, 0.0, -1.0) > This lead to the following quaternion : > q0 = 225783.35177064248 > q1 = 0.0 > q2 = 0.0 > q3 = -3.3684446110762543E-9 > I was expecting to have a normalized quaternion, as input vector's are normalized. Does the quaternion shouldn't be normalized ? > I've joined the corresponding piece of code as JUnit Test case -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira