Type:DoubleQ: Difference between revisions

From Resonite Wiki
Added more info, changed Category
m Reference to FloatQ examples
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
A DoubleQ Is Quaternion [[Type:Double|Double]]. It's used for rotation with higher precision.
A DoubleQ is a double precision floating point representation of a [https://en.wikipedia.org/wiki/Quaternion Quaternion]. It is commonly used for rotations which require higher precision.


Since the Froox Engine uses FloatQ for it's rotations, this data type is usually useful for doing calculations that require higher precision. Once the calculations are done, they would have to be simplifed by casting them into FloatQ to be able to use the result in object rotations.
Since [[FrooxEngine|FrooxEngine]] uses [[Type:FloatQ|FloatQ]] to store rotations for [[Slot|Slot]] transforms, this data type is mostly for performing manual computations which can later be down-converted to their single precision equivalent ([[Type:FloatQ|FloatQ]]).


[[Category:Types]]
Examples are the same as for [[Type:FloatQ#Examples|FloatQ#Examples]].
 
{{Template:DoubleTypes}}

Latest revision as of 08:06, 6 February 2024

A DoubleQ is a double precision floating point representation of a Quaternion. It is commonly used for rotations which require higher precision.

Since FrooxEngine uses FloatQ to store rotations for Slot transforms, this data type is mostly for performing manual computations which can later be down-converted to their single precision equivalent (FloatQ).

Examples are the same as for FloatQ#Examples.

Related Types