OSDN Git Service

Merge branch 'feature/#36529_SlimDXからSharpDXへの移行' into develop
[dtxmania/dtxmania.git] / SlimDXc_Jun2010(VC++2008) / source / math / Quaternion.h
diff --git a/SlimDXc_Jun2010(VC++2008)/source/math/Quaternion.h b/SlimDXc_Jun2010(VC++2008)/source/math/Quaternion.h
deleted file mode 100644 (file)
index d4b57d5..0000000
+++ /dev/null
@@ -1,557 +0,0 @@
-/*\r
-* Copyright (c) 2007-2010 SlimDX Group\r
-* \r
-* Permission is hereby granted, free of charge, to any person obtaining a copy\r
-* of this software and associated documentation files (the "Software"), to deal\r
-* in the Software without restriction, including without limitation the rights\r
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-* copies of the Software, and to permit persons to whom the Software is\r
-* furnished to do so, subject to the following conditions:\r
-* \r
-* The above copyright notice and this permission notice shall be included in\r
-* all copies or substantial portions of the Software.\r
-* \r
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-* THE SOFTWARE.\r
-*/\r
-#pragma once\r
-\r
-#include "../design/QuaternionConverter.h"\r
-\r
-using System::Runtime::InteropServices::OutAttribute;\r
-\r
-namespace SlimDX\r
-{\r
-       value class Matrix;\r
-       value class Vector3;\r
-       \r
-       /// <summary>\r
-       /// Defines a four dimensional mathematical quaternion.\r
-       /// </summary>\r
-       /// <unmanaged>D3DXQUATERNION</unmanaged>\r
-       [System::Serializable]\r
-       [System::Runtime::InteropServices::StructLayout( System::Runtime::InteropServices::LayoutKind::Sequential )]\r
-       [System::ComponentModel::TypeConverter( SlimDX::Design::QuaternionConverter::typeid )]\r
-       public value class Quaternion : System::IEquatable<Quaternion>\r
-       {\r
-       public:\r
-               /// <summary>\r
-               /// Gets or sets the X component of the quaternion.\r
-               /// </summary>\r
-               /// <value>The X component of the quaternion.</value>\r
-               float X;\r
-\r
-               /// <summary>\r
-               /// Gets or sets the Y component of the quaternion.\r
-               /// </summary>\r
-               /// <value>The Y component of the quaternion.</value>\r
-               float Y;\r
-\r
-               /// <summary>\r
-               /// Gets or sets the Z component of the quaternion.\r
-               /// </summary>\r
-               /// <value>The Z component of the quaternion.</value>\r
-               float Z;\r
-\r
-               /// <summary>\r
-               /// Gets or sets the W component of the quaternion.\r
-               /// </summary>\r
-               /// <value>The W component of the quaternion.</value>\r
-               float W;\r
-\r
-               /// <summary>\r
-               /// Initializes a new instance of the <see cref="Quaternion"/> structure.\r
-               /// </summary>\r
-               /// <param name="x">The X component of the quaternion.</param>\r
-               /// <param name="y">The Y component of the quaternion.</param>\r
-               /// <param name="z">The Z component of the quaternion.</param>\r
-               /// <param name="w">The W component of the quaternion.</param>\r
-               Quaternion( float x, float y, float z, float w );\r
-\r
-               /// <summary>\r
-               /// Initializes a new instance of the <see cref="Quaternion"/> structure.\r
-               /// </summary>\r
-               /// <param name="value">A <see cref="Vector3"/> containing the first three values of the quaternion.</param>\r
-               /// <param name="w">The W component of the quaternion.</param>\r
-               Quaternion( Vector3 value, float w );\r
-\r
-               /// <summary>\r
-               /// Gets the identity <see cref="Quaternion"/> (0, 0, 0, 1).\r
-               /// </summary>\r
-               static property Quaternion Identity { Quaternion get(); }\r
-\r
-               /// <summary>\r
-               /// Gets a value indicating whether this instance is an identity <see cref="Quaternion"/>.\r
-               /// </summary>\r
-               [System::ComponentModel::Browsable(false)]\r
-               property bool IsIdentity { bool get(); }\r
-\r
-               /// <summary>\r
-               /// Gets the axis components of the quaternion.\r
-               /// </summary>\r
-               property Vector3 Axis { Vector3 get(); }\r
-\r
-               /// <summary>\r
-               /// Gets the angle of the quaternion.\r
-               /// </summary>\r
-               property float Angle { float get(); }\r
-\r
-               /// <summary>\r
-               /// Calculates the length of the quaternion.\r
-               /// </summary>\r
-               /// <returns>The length of the quaternion.</returns>\r
-               float Length();\r
-\r
-               /// <summary>\r
-               /// Calculates the squared length of the quaternion.\r
-               /// </summary>\r
-               /// <returns>The squared length of the quaternion.</returns>\r
-               float LengthSquared();\r
-\r
-               /// <summary>\r
-               /// Converts the quaternion into a unit quaternion.\r
-               /// </summary>\r
-               void Normalize();\r
-\r
-               /// <summary>\r
-               /// Conjugates the quaternion.\r
-               /// </summary>\r
-               void Conjugate();\r
-\r
-               /// <summary>\r
-               /// Conjugates and renormalizes the quaternion.\r
-               /// </summary>\r
-               void Invert();\r
-\r
-               /// <summary>\r
-               /// Adds two quaternions.\r
-               /// </summary>\r
-               /// <param name="left">The first quaternion to add.</param>\r
-               /// <param name="right">The second quaternion to add.</param>\r
-               /// <returns>The sum of the two quaternions.</returns>\r
-               static Quaternion Add( Quaternion left, Quaternion right );\r
-\r
-               /// <summary>\r
-               /// Adds two quaternions.\r
-               /// </summary>\r
-               /// <param name="left">The first quaternion to add.</param>\r
-               /// <param name="right">The second quaternion to add.</param>\r
-               /// <param name="result">When the method completes, contains the sum of the two quaternions.</param>\r
-               static void Add( Quaternion% left, Quaternion% right, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Returns a <see cref="Quaternion"/> containing the 4D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 2D triangle.\r
-               /// </summary>\r
-               /// <param name="source1">A <see cref="Quaternion"/> containing the 4D Cartesian coordinates of vertex 1 of the triangle.</param>\r
-               /// <param name="source2">A <see cref="Quaternion"/> containing the 4D Cartesian coordinates of vertex 2 of the triangle.</param>\r
-               /// <param name="source3">A <see cref="Quaternion"/> containing the 4D Cartesian coordinates of vertex 3 of the triangle.</param>\r
-               /// <param name="weight1">Barycentric coordinate b2, which expresses the weighting factor toward vertex 2 (specified in <paramref name="source2"/>).</param>\r
-               /// <param name="weight2">Barycentric coordinate b3, which expresses the weighting factor toward vertex 3 (specified in <paramref name="source3"/>).</param>\r
-               /// <returns>A new <see cref="Quaternion"/> containing the 4D Cartesian coordinates of the specified point.</returns>\r
-               static Quaternion Barycentric( Quaternion source1, Quaternion source2, Quaternion source3, float weight1, float weight2 );\r
-               \r
-               /// <summary>\r
-               /// Returns a <see cref="Quaternion"/> containing the 4D Cartesian coordinates of a point specified in Barycentric coordinates relative to a 2D triangle.\r
-               /// </summary>\r
-               /// <param name="source1">A <see cref="Quaternion"/> containing the 4D Cartesian coordinates of vertex 1 of the triangle.</param>\r
-               /// <param name="source2">A <see cref="Quaternion"/> containing the 4D Cartesian coordinates of vertex 2 of the triangle.</param>\r
-               /// <param name="source3">A <see cref="Quaternion"/> containing the 4D Cartesian coordinates of vertex 3 of the triangle.</param>\r
-               /// <param name="weight1">Barycentric coordinate b2, which expresses the weighting factor toward vertex 2 (specified in <paramref name="source2"/>).</param>\r
-               /// <param name="weight2">Barycentric coordinate b3, which expresses the weighting factor toward vertex 3 (specified in <paramref name="source3"/>).</param>\r
-               /// <param name="result">When the method completes, contains a new <see cref="Quaternion"/> containing the 4D Cartesian coordinates of the specified point.</param>\r
-               static void Barycentric( Quaternion% source1, Quaternion% source2, Quaternion% source3, float weight1, float weight2, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Conjugates a quaternion.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to conjugate.</param>\r
-               /// <returns>The conjugated quaternion.</returns>\r
-               static Quaternion Conjugate( Quaternion quaternion );\r
-\r
-               /// <summary>\r
-               /// Conjugates a quaternion.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to conjugate.</param>\r
-               /// <param name="result">When the method completes, contains the conjugated quaternion.</param>\r
-               static void Conjugate( Quaternion% quaternion, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Divides a quaternion by another.\r
-               /// </summary>\r
-               /// <param name="left">The first quaternion to divide.</param>\r
-               /// <param name="right">The second quaternion to divide.</param>\r
-               /// <returns>The divided quaternion.</returns>\r
-               static Quaternion Divide( Quaternion left, Quaternion right );\r
-\r
-               /// <summary>\r
-               /// Divides a quaternion by another.\r
-               /// </summary>\r
-               /// <param name="left">The first quaternion to divide.</param>\r
-               /// <param name="right">The second quaternion to divide.</param>\r
-               /// <returns>The divided quaternion.</returns>\r
-               static void Divide( Quaternion% left, Quaternion% right, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Calculates the dot product of two quaternions.\r
-               /// </summary>\r
-               /// <param name="left">First source quaternion.</param>\r
-               /// <param name="right">Second source quaternion.</param>\r
-               /// <returns>The dot product of the two quaternions.</returns>\r
-               static float Dot( Quaternion left, Quaternion right );\r
-\r
-               /// <summary>\r
-               /// Exponentiates a quaternion.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to exponentiate.</param>\r
-               /// <returns>The exponentiated quaternion.</returns>\r
-               static Quaternion Exponential( Quaternion quaternion );\r
-\r
-               /// <summary>\r
-               /// Exponentiates a quaternion.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to exponentiate.</param>\r
-               /// <param name="result">When the method completes, contains the exponentiated quaternion.</param>\r
-               static void Exponential( Quaternion% quaternion, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Conjugates and renormalizes the quaternion.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to conjugate and renormalize.</param>\r
-               /// <returns>The conjugated and renormalized quaternion.</returns>\r
-               static Quaternion Invert( Quaternion quaternion );\r
-\r
-               /// <summary>\r
-               /// Conjugates and renormalizes the quaternion.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to conjugate and renormalize.</param>\r
-               /// <param name="result">When the method completes, contains the conjugated and renormalized quaternion.</param>\r
-               static void Invert( Quaternion% quaternion, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Performs a linear interpolation between two quaternion.\r
-               /// </summary>\r
-               /// <param name="start">Start quaternion.</param>\r
-               /// <param name="end">End quaternion.</param>\r
-               /// <param name="amount">Value between 0 and 1 indicating the weight of <paramref name="end"/>.</param>\r
-               /// <returns>The linear interpolation of the two quaternions.</returns>\r
-               /// <remarks>\r
-               /// This method performs the linear interpolation based on the following formula.\r
-               /// <code>start + (end - start) * amount</code>\r
-               /// Passing <paramref name="amount"/> a value of 0 will cause <paramref name="start"/> to be returned; a value of 1 will cause <paramref name="end"/> to be returned. \r
-               /// </remarks>\r
-               static Quaternion Lerp( Quaternion start, Quaternion end, float amount );\r
-\r
-               /// <summary>\r
-               /// Performs a linear interpolation between two quaternions.\r
-               /// </summary>\r
-               /// <param name="start">Start quaternion.</param>\r
-               /// <param name="end">End quaternion.</param>\r
-               /// <param name="amount">Value between 0 and 1 indicating the weight of <paramref name="end"/>.</param>\r
-               /// <param name="result">When the method completes, contains the linear interpolation of the two quaternions.</param>\r
-               /// <remarks>\r
-               /// This method performs the linear interpolation based on the following formula.\r
-               /// <code>start + (end - start) * amount</code>\r
-               /// Passing <paramref name="amount"/> a value of 0 will cause <paramref name="start"/> to be returned; a value of 1 will cause <paramref name="end"/> to be returned. \r
-               /// </remarks>\r
-               static void Lerp( Quaternion% start, Quaternion% end, float amount, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Calculates the natural logarithm of the specified quaternion.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion whose logarithm will be calculated.</param>\r
-               /// <returns>The natural logarithm of the quaternion.</returns>\r
-               static Quaternion Logarithm( Quaternion quaternion );\r
-\r
-               /// <summary>\r
-               /// Calculates the natural logarithm of the specified quaternion.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion whose logarithm will be calculated.</param>\r
-               /// <param name="result">When the method completes, contains the natural logarithm of the quaternion.</param>\r
-               static void Logarithm( Quaternion% quaternion, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Modulates a quaternion by another.\r
-               /// </summary>\r
-               /// <param name="left">The first quaternion to modulate.</param>\r
-               /// <param name="right">The second quaternion to modulate.</param>\r
-               /// <returns>The modulated quaternion.</returns>\r
-               static Quaternion Multiply( Quaternion left, Quaternion right );\r
-\r
-               /// <summary>\r
-               /// Modulates a quaternion by another.\r
-               /// </summary>\r
-               /// <param name="left">The first quaternion to modulate.</param>\r
-               /// <param name="right">The second quaternion to modulate.</param>\r
-               /// <param name="result">When the moethod completes, contains the modulated quaternion.</param>\r
-               static void Multiply( Quaternion% left, Quaternion% right, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Scales a quaternion by the given value.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to scale.</param>\r
-               /// <param name="scale">The amount by which to scale the quaternion.</param>\r
-               /// <returns>The scaled quaternion.</returns>\r
-               static Quaternion Multiply( Quaternion quaternion, float scale );\r
-\r
-               /// <summary>\r
-               /// Scales a quaternion by the given value.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to scale.</param>\r
-               /// <param name="scale">The amount by which to scale the quaternion.</param>\r
-               /// <param name="result">When the method completes, contains the scaled quaternion.</param>\r
-               static void Multiply( Quaternion% quaternion, float scale, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Reverses the direction of a given quaternion.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to negate.</param>\r
-               /// <returns>A quaternion facing in the opposite direction.</returns>\r
-               static Quaternion Negate( Quaternion quaternion );\r
-\r
-               /// <summary>\r
-               /// Reverses the direction of a given quaternion.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to negate.</param>\r
-               /// <param name="result">When the method completes, contains a quaternion facing in the opposite direction.</param>\r
-               static void Negate( Quaternion% quaternion, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Converts the quaternion into a unit quaternion.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to normalize.</param>\r
-               /// <returns>The normalized quaternion.</returns>\r
-               static Quaternion Normalize( Quaternion quaternion );\r
-\r
-               /// <summary>\r
-               /// Converts the quaternion into a unit quaternion.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to normalize.</param>\r
-               /// <param name="result">When the method completes, contains the normalized quaternion.</param>\r
-               static void Normalize( Quaternion% quaternion, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Creates a quaternion given a rotation and an axis.\r
-               /// </summary>\r
-               /// <param name="axis">The axis of rotation.</param>\r
-               /// <param name="angle">The angle of rotation.</param>\r
-               /// <returns>The newly created quaternion.</returns>\r
-               static Quaternion RotationAxis( Vector3 axis, float angle );\r
-\r
-               /// <summary>\r
-               /// Creates a quaternion given a rotation and an axis.\r
-               /// </summary>\r
-               /// <param name="axis">The axis of rotation.</param>\r
-               /// <param name="angle">The angle of rotation.</param>\r
-               /// <param name="result">When the method completes, contains the newly created quaternion.</param>\r
-               static void RotationAxis( Vector3% axis, float angle, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Creates a quaternion given a rotation matrix.\r
-               /// </summary>\r
-               /// <param name="matrix">The rotation matrix.</param>\r
-               /// <returns>The newly created quaternion.</returns>\r
-               static Quaternion RotationMatrix( Matrix matrix );\r
-\r
-               /// <summary>\r
-               /// Creates a quaternion given a rotation matrix.\r
-               /// </summary>\r
-               /// <param name="matrix">The rotation matrix.</param>\r
-               /// <param name="result">When the method completes, contains the newly created quaternion.</param>\r
-               static void RotationMatrix( Matrix% matrix, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Creates a quaternion given a yaw, pitch, and roll value.\r
-               /// </summary>\r
-               /// <param name="yaw">The yaw of rotation.</param>\r
-               /// <param name="pitch">The pitch of rotation.</param>\r
-               /// <param name="roll">The roll of rotation.</param>\r
-               /// <returns>The newly created quaternion.</returns>\r
-               static Quaternion RotationYawPitchRoll( float yaw, float pitch, float roll );\r
-\r
-               /// <summary>\r
-               /// Creates a quaternion given a yaw, pitch, and roll value.\r
-               /// </summary>\r
-               /// <param name="yaw">The yaw of rotation.</param>\r
-               /// <param name="pitch">The pitch of rotation.</param>\r
-               /// <param name="roll">The roll of rotation.</param>\r
-               /// <param name="result">When the method completes, contains the newly created quaternion.</param>\r
-               static void RotationYawPitchRoll( float yaw, float pitch, float roll, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Interpolates between two quaternions, using spherical linear interpolation.\r
-               /// </summary>\r
-               /// <param name="start">Start quaternion.</param>\r
-               /// <param name="end">End quaternion.</param>\r
-               /// <param name="amount">Value between 0 and 1 indicating the weight of <paramref name="end"/>.</param>\r
-               /// <returns>The spherical linear interpolation of the two quaternions.</returns>\r
-               static Quaternion Slerp( Quaternion start, Quaternion end, float amount );\r
-\r
-               /// <summary>\r
-               /// Interpolates between two quaternions, using spherical linear interpolation.\r
-               /// </summary>\r
-               /// <param name="start">Start quaternion.</param>\r
-               /// <param name="end">End quaternion.</param>\r
-               /// <param name="amount">Value between 0 and 1 indicating the weight of <paramref name="end"/>.</param>\r
-               /// <param name="result">When the method completes, contains the spherical linear interpolation of the two quaternions.</param>\r
-               static void Slerp( Quaternion% start, Quaternion% end, float amount, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Interpolates between quaternions, using spherical quadrangle interpolation.\r
-               /// </summary>\r
-               /// <param name="source1">First source quaternion.</param>\r
-               /// <param name="source2">Second source quaternion.</param>\r
-               /// <param name="source3">Thrid source quaternion.</param>\r
-               /// <param name="source4">Fourth source quaternion.</param>\r
-               /// <param name="amount">Value between 0 and 1 indicating the weight of interpolation.</param>\r
-               /// <returns>The spherical quadrangle interpolation of the quaternions.</returns>\r
-               static Quaternion Squad( Quaternion source1, Quaternion source2, Quaternion source3, Quaternion source4, float amount );\r
-               \r
-               /// <summary>\r
-               /// Interpolates between quaternions, using spherical quadrangle interpolation.\r
-               /// </summary>\r
-               /// <param name="source1">First source quaternion.</param>\r
-               /// <param name="source2">Second source quaternion.</param>\r
-               /// <param name="source3">Thrid source quaternion.</param>\r
-               /// <param name="source4">Fourth source quaternion.</param>\r
-               /// <param name="amount">Value between 0 and 1 indicating the weight of interpolation.</param>\r
-               /// <param name="result">When the method completes, contains the spherical quadrangle interpolation of the quaternions.</param>\r
-               static void Squad( Quaternion% source1, Quaternion% source2, Quaternion% source3, Quaternion% source4, float amount, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Sets up control points for spherical quadrangle interpolation.\r
-               /// </summary>\r
-               /// <param name="source1">First source quaternion.</param>\r
-               /// <param name="source2">Second source quaternion.</param>\r
-               /// <param name="source3">Third source quaternion.</param>\r
-               /// <param name="source4">Fourth source quaternion.</param>\r
-               /// <returns>An array of three quaternions that represent control points for spherical quadrangle interpolation.</returns>\r
-               static array<Quaternion>^ SquadSetup( Quaternion source1, Quaternion source2, Quaternion source3, Quaternion source4 );\r
-\r
-               /// <summary>\r
-               /// Subtracts two quaternions.\r
-               /// </summary>\r
-               /// <param name="left">The first quaternion to subtract.</param>\r
-               /// <param name="right">The second quaternion to subtract.</param>\r
-               /// <returns>The difference of the two quaternions.</returns>\r
-               static Quaternion Subtract( Quaternion left, Quaternion right );\r
-\r
-               /// <summary>\r
-               /// Subtracts two quaternions.\r
-               /// </summary>\r
-               /// <param name="left">The first quaternion to subtract.</param>\r
-               /// <param name="right">The second quaternion to subtract.</param>\r
-               /// <param name="result">When the method completes, contains the difference of the two quaternions.</param>\r
-               static void Subtract( Quaternion% left, Quaternion% right, [Out] Quaternion% result );\r
-\r
-               /// <summary>\r
-               /// Multiplies a quaternion by another.\r
-               /// </summary>\r
-               /// <param name="left">The first quaternion to multiply.</param>\r
-               /// <param name="right">The second quaternion to multiply.</param>\r
-               /// <returns>The multiplied quaternion.</returns>\r
-               static Quaternion operator * ( Quaternion left, Quaternion right );\r
-\r
-               /// <summary>\r
-               /// Scales a quaternion by the given value.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to scale.</param>\r
-               /// <param name="scale">The amount by which to scale the quaternion.</param>\r
-               /// <returns>The scaled quaternion.</returns>\r
-               static Quaternion operator * ( Quaternion quaternion, float scale );\r
-\r
-               /// <summary>\r
-               /// Scales a quaternion by the given value.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to scale.</param>\r
-               /// <param name="scale">The amount by which to scale the quaternion.</param>\r
-               /// <returns>The scaled quaternion.</returns>\r
-               static Quaternion operator * ( float scale, Quaternion quaternion );\r
-\r
-               /// <summary>\r
-               /// Divides a quaternion by another.\r
-               /// </summary>\r
-               /// <param name="left">The first quaternion to divide.</param>\r
-               /// <param name="right">The second quaternion to divide.</param>\r
-               /// <returns>The divided quaternion.</returns>\r
-               static Quaternion operator / ( Quaternion left, float right );\r
-\r
-               /// <summary>\r
-               /// Adds two quaternions.\r
-               /// </summary>\r
-               /// <param name="left">The first quaternion to add.</param>\r
-               /// <param name="right">The second quaternion to add.</param>\r
-               /// <returns>The sum of the two quaternions.</returns>\r
-               static Quaternion operator + ( Quaternion left, Quaternion right );\r
-\r
-               /// <summary>\r
-               /// Subtracts two quaternions.\r
-               /// </summary>\r
-               /// <param name="left">The first quaternion to subtract.</param>\r
-               /// <param name="right">The second quaternion to subtract.</param>\r
-               /// <returns>The difference of the two quaternions.</returns>\r
-               static Quaternion operator - ( Quaternion left, Quaternion right );\r
-\r
-               /// <summary>\r
-               /// Reverses the direction of a given quaternion.\r
-               /// </summary>\r
-               /// <param name="quaternion">The quaternion to negate.</param>\r
-               /// <returns>A quaternion facing in the opposite direction.</returns>\r
-               static Quaternion operator - ( Quaternion quaternion );\r
-\r
-               /// <summary>\r
-               /// Tests for equality between two objects.\r
-               /// </summary>\r
-               /// <param name="left">The first value to compare.</param>\r
-               /// <param name="right">The second value to compare.</param>\r
-               /// <returns><c>true</c> if <paramref name="left"/> has the same value as <paramref name="right"/>; otherwise, <c>false</c>.</returns>\r
-               static bool operator == ( Quaternion left, Quaternion right );\r
-\r
-               /// <summary>\r
-               /// Tests for inequality between two objects.\r
-               /// </summary>\r
-               /// <param name="left">The first value to compare.</param>\r
-               /// <param name="right">The second value to compare.</param>\r
-               /// <returns><c>true</c> if <paramref name="left"/> has a different value than <paramref name="right"/>; otherwise, <c>false</c>.</returns>\r
-               static bool operator != ( Quaternion left, Quaternion right );\r
-\r
-               /// <summary>\r
-               /// Converts the value of the object to its equivalent string representation.\r
-               /// </summary>\r
-               /// <returns>The string representation of the value of this instance.</returns>\r
-               virtual System::String^ ToString() override;\r
-\r
-               /// <summary>\r
-               /// Returns the hash code for this instance.\r
-               /// </summary>\r
-               /// <returns>A 32-bit signed integer hash code.</returns>\r
-               virtual int GetHashCode() override;\r
-\r
-               /// <summary>\r
-               /// Returns a value that indicates whether the current instance is equal to a specified object. \r
-               /// </summary>\r
-               /// <param name="obj">Object to make the comparison with.</param>\r
-               /// <returns><c>true</c> if the current instance is equal to the specified object; <c>false</c> otherwise.</returns>\r
-               virtual bool Equals( System::Object^ obj ) override;\r
-\r
-               /// <summary>\r
-               /// Returns a value that indicates whether the current instance is equal to the specified object. \r
-               /// </summary>\r
-               /// <param name="other">Object to make the comparison with.</param>\r
-               /// <returns><c>true</c> if the current instance is equal to the specified object; <c>false</c> otherwise.</returns>\r
-               virtual bool Equals( Quaternion other );\r
-\r
-               /// <summary>\r
-               /// Determines whether the specified object instances are considered equal. \r
-               /// </summary>\r
-               /// <param name="value1"></param>\r
-               /// <param name="value2"></param>\r
-               /// <returns><c>true</c> if <paramref name="value1"/> is the same instance as <paramref name="value2"/> or \r
-               /// if both are <c>null</c> references or if <c>value1.Equals(value2)</c> returns <c>true</c>; otherwise, <c>false</c>.</returns>\r
-               static bool Equals( Quaternion% value1, Quaternion% value2 );\r
-       };\r
-}\r