realbasic-games
[Top] [All Lists]

Re: Setting quaternions by way of "=" or copying them

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Setting quaternions by way of "=" or copying them
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Tue, 22 Feb 2005 08:44:09 -0600
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <20050220180020 dot A4A5773F10F at lists dot realsoftware dot com> <d7765b7ae821f510e569a3dde52056a7 at uio dot satnet dot net>
At 11:54 PM -0500 2/21/05, Heinz J. Gattringer wrote:

Object3D2.Orientation.W=Object3D1.Orientation.W
Object3D2.Orientation.X=Object3D1.Orientation.X
Object3D2.Orientation.Y=Object3D1.Orientation.Y
Object3D2.Orientation.Z=Object3D1.Orientation.Z

Is there a nicer and more efficient way to copy one quaternion to another without having them "coupled"?

There are some shorter ways, but nothing more efficient.

I think in my code I made an extension method of Quaternion that adds a Copy to it, just like Vector3D has.

I honestly don't know why we don't have Quaternion.Copy built in -- please file a feature request if you think it's a good idea.

Best,
- Joe

--
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>