Advertisement
gr4viton

eulerAngles?

Apr 13th, 2015
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #region Assembly SharpDX.dll, v2.6.2.0
  2. // b:\__DIP\dev\_main_dev\EyeOut\EyeOut\packages\SharpDX.2.6.2\Bin\DirectX11-Signed-net40\SharpDX.dll
  3. #endregion
  4.  
  5. using SharpDX.Serialization;
  6. using System;
  7. using System.Reflection;
  8.  
  9. namespace SharpDX
  10. {
  11.     // Summary:
  12.     //     Represents a four dimensional mathematical quaternion.
  13.     public struct Quaternion : IEquatable<Quaternion>, IFormattable, IDataSerializable
  14.     {
  15.         // Summary:
  16.         //     The identity SharpDX.Quaternion (0, 0, 0, 1).
  17.         public static readonly Quaternion Identity;
  18.         //
  19.         // Summary:
  20.         //     A SharpDX.Quaternion with all of its components set to one.
  21.         public static readonly Quaternion One;
  22.         //
  23.         // Summary:
  24.         //     The size of the SharpDX.Quaternion type, in bytes.
  25.         public static readonly int SizeInBytes;
  26.         //
  27.         // Summary:
  28.         //     The W component of the quaternion.
  29.         public float W;
  30.         //
  31.         // Summary:
  32.         //     The X component of the quaternion.
  33.         public float X;
  34.         //
  35.         // Summary:
  36.         //     The Y component of the quaternion.
  37.         public float Y;
  38.         //
  39.         // Summary:
  40.         //     The Z component of the quaternion.
  41.         public float Z;
  42.         //
  43.         // Summary:
  44.         //     A SharpDX.Quaternion with all of its components set to zero.
  45.         public static readonly Quaternion Zero;
  46.  
  47.         //
  48.         // Summary:
  49.         //     Initializes a new instance of the SharpDX.Quaternion struct.
  50.         //
  51.         // Parameters:
  52.         //   value:
  53.         //     The value that will be assigned to all components.
  54.         public Quaternion(float value);
  55.         //
  56.         // Summary:
  57.         //     Initializes a new instance of the SharpDX.Quaternion struct.
  58.         //
  59.         // Parameters:
  60.         //   values:
  61.         //     The values to assign to the X, Y, Z, and W components of the quaternion.
  62.         //     This must be an array with four elements.
  63.         //
  64.         // Exceptions:
  65.         //   System.ArgumentNullException:
  66.         //     Thrown when values is null.
  67.         //
  68.         //   System.ArgumentOutOfRangeException:
  69.         //     Thrown when values contains more or less than four elements.
  70.         public Quaternion(float[] values);
  71.         //
  72.         // Summary:
  73.         //     Initializes a new instance of the SharpDX.Quaternion struct.
  74.         //
  75.         // Parameters:
  76.         //   value:
  77.         //     A vector containing the values with which to initialize the components.
  78.         public Quaternion(Vector4 value);
  79.         //
  80.         // Summary:
  81.         //     Initializes a new instance of the SharpDX.Quaternion struct.
  82.         //
  83.         // Parameters:
  84.         //   value:
  85.         //     A vector containing the values with which to initialize the X, Y, and Z components.
  86.         //
  87.         //   w:
  88.         //     Initial value for the W component of the quaternion.
  89.         public Quaternion(Vector3 value, float w);
  90.         //
  91.         // Summary:
  92.         //     Initializes a new instance of the SharpDX.Quaternion struct.
  93.         //
  94.         // Parameters:
  95.         //   value:
  96.         //     A vector containing the values with which to initialize the X and Y components.
  97.         //
  98.         //   z:
  99.         //     Initial value for the Z component of the quaternion.
  100.         //
  101.         //   w:
  102.         //     Initial value for the W component of the quaternion.
  103.         public Quaternion(Vector2 value, float z, float w);
  104.         //
  105.         // Summary:
  106.         //     Initializes a new instance of the SharpDX.Quaternion struct.
  107.         //
  108.         // Parameters:
  109.         //   x:
  110.         //     Initial value for the X component of the quaternion.
  111.         //
  112.         //   y:
  113.         //     Initial value for the Y component of the quaternion.
  114.         //
  115.         //   z:
  116.         //     Initial value for the Z component of the quaternion.
  117.         //
  118.         //   w:
  119.         //     Initial value for the W component of the quaternion.
  120.         public Quaternion(float x, float y, float z, float w);
  121.  
  122.         // Summary:
  123.         //     Reverses the direction of a given quaternion.
  124.         //
  125.         // Parameters:
  126.         //   value:
  127.         //     The quaternion to negate.
  128.         //
  129.         // Returns:
  130.         //     A quaternion facing in the opposite direction.
  131.         public static Quaternion operator -(Quaternion value);
  132.         //
  133.         // Summary:
  134.         //     Subtracts two quaternions.
  135.         //
  136.         // Parameters:
  137.         //   left:
  138.         //     The first quaternion to subtract.
  139.         //
  140.         //   right:
  141.         //     The second quaternion to subtract.
  142.         //
  143.         // Returns:
  144.         //     The difference of the two quaternions.
  145.         public static Quaternion operator -(Quaternion left, Quaternion right);
  146.         //
  147.         // Summary:
  148.         //     Tests for inequality between two objects.
  149.         //
  150.         // Parameters:
  151.         //   left:
  152.         //     The first value to compare.
  153.         //
  154.         //   right:
  155.         //     The second value to compare.
  156.         //
  157.         // Returns:
  158.         //     true if left has a different value than right; otherwise, false.
  159.         public static bool operator !=(Quaternion left, Quaternion right);
  160.         //
  161.         // Summary:
  162.         //     Scales a quaternion by the given value.
  163.         //
  164.         // Parameters:
  165.         //   value:
  166.         //     The quaternion to scale.
  167.         //
  168.         //   scale:
  169.         //     The amount by which to scale the quaternion.
  170.         //
  171.         // Returns:
  172.         //     The scaled quaternion.
  173.         public static Quaternion operator *(float scale, Quaternion value);
  174.         //
  175.         // Summary:
  176.         //     Scales a quaternion by the given value.
  177.         //
  178.         // Parameters:
  179.         //   value:
  180.         //     The quaternion to scale.
  181.         //
  182.         //   scale:
  183.         //     The amount by which to scale the quaternion.
  184.         //
  185.         // Returns:
  186.         //     The scaled quaternion.
  187.         public static Quaternion operator *(Quaternion value, float scale);
  188.         //
  189.         // Summary:
  190.         //     Multiplies a quaternion by another.
  191.         //
  192.         // Parameters:
  193.         //   left:
  194.         //     The first quaternion to multiply.
  195.         //
  196.         //   right:
  197.         //     The second quaternion to multiply.
  198.         //
  199.         // Returns:
  200.         //     The multiplied quaternion.
  201.         public static Quaternion operator *(Quaternion left, Quaternion right);
  202.         //
  203.         // Summary:
  204.         //     Adds two quaternions.
  205.         //
  206.         // Parameters:
  207.         //   left:
  208.         //     The first quaternion to add.
  209.         //
  210.         //   right:
  211.         //     The second quaternion to add.
  212.         //
  213.         // Returns:
  214.         //     The sum of the two quaternions.
  215.         public static Quaternion operator +(Quaternion left, Quaternion right);
  216.         //
  217.         // Summary:
  218.         //     Tests for equality between two objects.
  219.         //
  220.         // Parameters:
  221.         //   left:
  222.         //     The first value to compare.
  223.         //
  224.         //   right:
  225.         //     The second value to compare.
  226.         //
  227.         // Returns:
  228.         //     true if left has the same value as right; otherwise, false.
  229.         public static bool operator ==(Quaternion left, Quaternion right);
  230.  
  231.         // Summary:
  232.         //     Gets the angle of the quaternion.
  233.         public float Angle { get; }
  234.         //
  235.         // Summary:
  236.         //     Gets the axis components of the quaternion.
  237.         public Vector3 Axis { get; }
  238.         //
  239.         // Summary:
  240.         //     Gets a value indicating whether this instance is equivalent to the identity
  241.         //     quaternion.
  242.         public bool IsIdentity { get; }
  243.         //
  244.         // Summary:
  245.         //     Gets a value indicting whether this instance is normalized.
  246.         public bool IsNormalized { get; }
  247.  
  248.         // Summary:
  249.         //     Gets or sets the component at the specified index.
  250.         //
  251.         // Parameters:
  252.         //   index:
  253.         //     The index of the component to access. Use 0 for the X component, 1 for the
  254.         //     Y component, 2 for the Z component, and 3 for the W component.
  255.         //
  256.         // Returns:
  257.         //     The value of the component at the specified index.
  258.         //
  259.         // Exceptions:
  260.         //   System.ArgumentOutOfRangeException:
  261.         //     Thrown when the index is out of the range [0, 3].
  262.         public float this[int index] { get; set; }
  263.  
  264.         // Summary:
  265.         //     Adds two quaternions.
  266.         //
  267.         // Parameters:
  268.         //   left:
  269.         //     The first quaternion to add.
  270.         //
  271.         //   right:
  272.         //     The second quaternion to add.
  273.         //
  274.         // Returns:
  275.         //     The sum of the two quaternions.
  276.         public static Quaternion Add(Quaternion left, Quaternion right);
  277.         //
  278.         // Summary:
  279.         //     Adds two quaternions.
  280.         //
  281.         // Parameters:
  282.         //   left:
  283.         //     The first quaternion to add.
  284.         //
  285.         //   right:
  286.         //     The second quaternion to add.
  287.         //
  288.         //   result:
  289.         //     When the method completes, contains the sum of the two quaternions.
  290.         public static void Add(ref Quaternion left, ref Quaternion right, out Quaternion result);
  291.         //
  292.         // Summary:
  293.         //     Returns a SharpDX.Quaternion containing the 4D Cartesian coordinates of a
  294.         //     point specified in Barycentric coordinates relative to a 2D triangle.
  295.         //
  296.         // Parameters:
  297.         //   value1:
  298.         //     A SharpDX.Quaternion containing the 4D Cartesian coordinates of vertex 1
  299.         //     of the triangle.
  300.         //
  301.         //   value2:
  302.         //     A SharpDX.Quaternion containing the 4D Cartesian coordinates of vertex 2
  303.         //     of the triangle.
  304.         //
  305.         //   value3:
  306.         //     A SharpDX.Quaternion containing the 4D Cartesian coordinates of vertex 3
  307.         //     of the triangle.
  308.         //
  309.         //   amount1:
  310.         //     Barycentric coordinate b2, which expresses the weighting factor toward vertex
  311.         //     2 (specified in value2).
  312.         //
  313.         //   amount2:
  314.         //     Barycentric coordinate b3, which expresses the weighting factor toward vertex
  315.         //     3 (specified in value3).
  316.         //
  317.         // Returns:
  318.         //     A new SharpDX.Quaternion containing the 4D Cartesian coordinates of the specified
  319.         //     point.
  320.         public static Quaternion Barycentric(Quaternion value1, Quaternion value2, Quaternion value3, float amount1, float amount2);
  321.         //
  322.         // Summary:
  323.         //     Returns a SharpDX.Quaternion containing the 4D Cartesian coordinates of a
  324.         //     point specified in Barycentric coordinates relative to a 2D triangle.
  325.         //
  326.         // Parameters:
  327.         //   value1:
  328.         //     A SharpDX.Quaternion containing the 4D Cartesian coordinates of vertex 1
  329.         //     of the triangle.
  330.         //
  331.         //   value2:
  332.         //     A SharpDX.Quaternion containing the 4D Cartesian coordinates of vertex 2
  333.         //     of the triangle.
  334.         //
  335.         //   value3:
  336.         //     A SharpDX.Quaternion containing the 4D Cartesian coordinates of vertex 3
  337.         //     of the triangle.
  338.         //
  339.         //   amount1:
  340.         //     Barycentric coordinate b2, which expresses the weighting factor toward vertex
  341.         //     2 (specified in value2).
  342.         //
  343.         //   amount2:
  344.         //     Barycentric coordinate b3, which expresses the weighting factor toward vertex
  345.         //     3 (specified in value3).
  346.         //
  347.         //   result:
  348.         //     When the method completes, contains a new SharpDX.Quaternion containing the
  349.         //     4D Cartesian coordinates of the specified point.
  350.         public static void Barycentric(ref Quaternion value1, ref Quaternion value2, ref Quaternion value3, float amount1, float amount2, out Quaternion result);
  351.         //
  352.         // Summary:
  353.         //     Creates a left-handed spherical billboard that rotates around a specified
  354.         //     object position.
  355.         //
  356.         // Parameters:
  357.         //   objectPosition:
  358.         //     The position of the object around which the billboard will rotate.
  359.         //
  360.         //   cameraPosition:
  361.         //     The position of the camera.
  362.         //
  363.         //   cameraUpVector:
  364.         //     The up vector of the camera.
  365.         //
  366.         //   cameraForwardVector:
  367.         //     The forward vector of the camera.
  368.         //
  369.         // Returns:
  370.         //     When the method completes, contains the created billboard quaternion.
  371.         public static Quaternion BillboardLH(Vector3 objectPosition, Vector3 cameraPosition, Vector3 cameraUpVector, Vector3 cameraForwardVector);
  372.         //
  373.         // Summary:
  374.         //     Creates a left-handed spherical billboard that rotates around a specified
  375.         //     object position.
  376.         //
  377.         // Parameters:
  378.         //   objectPosition:
  379.         //     The position of the object around which the billboard will rotate.
  380.         //
  381.         //   cameraPosition:
  382.         //     The position of the camera.
  383.         //
  384.         //   cameraUpVector:
  385.         //     The up vector of the camera.
  386.         //
  387.         //   cameraForwardVector:
  388.         //     The forward vector of the camera.
  389.         //
  390.         //   result:
  391.         //     When the method completes, contains the created billboard quaternion.
  392.         public static void BillboardLH(ref Vector3 objectPosition, ref Vector3 cameraPosition, ref Vector3 cameraUpVector, ref Vector3 cameraForwardVector, out Quaternion result);
  393.         //
  394.         // Summary:
  395.         //     Creates a left-handed spherical billboard that rotates around a specified
  396.         //     object position.
  397.         //
  398.         // Parameters:
  399.         //   objectPosition:
  400.         //     The position of the object around which the billboard will rotate.
  401.         //
  402.         //   cameraPosition:
  403.         //     The position of the camera.
  404.         //
  405.         //   cameraUpVector:
  406.         //     The up vector of the camera.
  407.         //
  408.         //   cameraForwardVector:
  409.         //     The forward vector of the camera.
  410.         //
  411.         // Returns:
  412.         //     When the method completes, contains the created billboard quaternion.
  413.         public static Quaternion BillboardRH(Vector3 objectPosition, Vector3 cameraPosition, Vector3 cameraUpVector, Vector3 cameraForwardVector);
  414.         //
  415.         // Summary:
  416.         //     Creates a left-handed spherical billboard that rotates around a specified
  417.         //     object position.
  418.         //
  419.         // Parameters:
  420.         //   objectPosition:
  421.         //     The position of the object around which the billboard will rotate.
  422.         //
  423.         //   cameraPosition:
  424.         //     The position of the camera.
  425.         //
  426.         //   cameraUpVector:
  427.         //     The up vector of the camera.
  428.         //
  429.         //   cameraForwardVector:
  430.         //     The forward vector of the camera.
  431.         //
  432.         //   result:
  433.         //     When the method completes, contains the created billboard quaternion.
  434.         public static void BillboardRH(ref Vector3 objectPosition, ref Vector3 cameraPosition, ref Vector3 cameraUpVector, ref Vector3 cameraForwardVector, out Quaternion result);
  435.         //
  436.         // Summary:
  437.         //     Conjugates the quaternion.
  438.         public void Conjugate();
  439.         //
  440.         // Summary:
  441.         //     Conjugates a quaternion.
  442.         //
  443.         // Parameters:
  444.         //   value:
  445.         //     The quaternion to conjugate.
  446.         //
  447.         // Returns:
  448.         //     The conjugated quaternion.
  449.         public static Quaternion Conjugate(Quaternion value);
  450.         //
  451.         // Summary:
  452.         //     Conjugates a quaternion.
  453.         //
  454.         // Parameters:
  455.         //   value:
  456.         //     The quaternion to conjugate.
  457.         //
  458.         //   result:
  459.         //     When the method completes, contains the conjugated quaternion.
  460.         public static void Conjugate(ref Quaternion value, out Quaternion result);
  461.         //
  462.         // Summary:
  463.         //     Calculates the dot product of two quaternions.
  464.         //
  465.         // Parameters:
  466.         //   left:
  467.         //     First source quaternion.
  468.         //
  469.         //   right:
  470.         //     Second source quaternion.
  471.         //
  472.         // Returns:
  473.         //     The dot product of the two quaternions.
  474.         public static float Dot(Quaternion left, Quaternion right);
  475.         //
  476.         // Summary:
  477.         //     Calculates the dot product of two quaternions.
  478.         //
  479.         // Parameters:
  480.         //   left:
  481.         //     First source quaternion.
  482.         //
  483.         //   right:
  484.         //     Second source quaternion.
  485.         //
  486.         //   result:
  487.         //     When the method completes, contains the dot product of the two quaternions.
  488.         public static void Dot(ref Quaternion left, ref Quaternion right, out float result);
  489.         //
  490.         // Summary:
  491.         //     Determines whether the specified System.Object is equal to this instance.
  492.         //
  493.         // Parameters:
  494.         //   value:
  495.         //     The System.Object to compare with this instance.
  496.         //
  497.         // Returns:
  498.         //     true if the specified System.Object is equal to this instance; otherwise,
  499.         //     false.
  500.         public override bool Equals(object value);
  501.         //
  502.         // Summary:
  503.         //     Determines whether the specified SharpDX.Quaternion is equal to this instance.
  504.         //
  505.         // Parameters:
  506.         //   other:
  507.         //     The SharpDX.Quaternion to compare with this instance.
  508.         //
  509.         // Returns:
  510.         //     true if the specified SharpDX.Quaternion is equal to this instance; otherwise,
  511.         //     false.
  512.         public bool Equals(Quaternion other);
  513.         //
  514.         // Summary:
  515.         //     Determines whether the specified SharpDX.Quaternion is equal to this instance.
  516.         //
  517.         // Parameters:
  518.         //   other:
  519.         //     The SharpDX.Quaternion to compare with this instance.
  520.         //
  521.         // Returns:
  522.         //     true if the specified SharpDX.Quaternion is equal to this instance; otherwise,
  523.         //     false.
  524.         public bool Equals(ref Quaternion other);
  525.         //
  526.         // Summary:
  527.         //     Exponentiates a quaternion.
  528.         //
  529.         // Parameters:
  530.         //   value:
  531.         //     The quaternion to exponentiate.
  532.         //
  533.         // Returns:
  534.         //     The exponentiated quaternion.
  535.         public static Quaternion Exponential(Quaternion value);
  536.         //
  537.         // Summary:
  538.         //     Exponentiates a quaternion.
  539.         //
  540.         // Parameters:
  541.         //   value:
  542.         //     The quaternion to exponentiate.
  543.         //
  544.         //   result:
  545.         //     When the method completes, contains the exponentiated quaternion.
  546.         public static void Exponential(ref Quaternion value, out Quaternion result);
  547.         //
  548.         // Summary:
  549.         //     Returns a hash code for this instance.
  550.         //
  551.         // Returns:
  552.         //     A hash code for this instance, suitable for use in hashing algorithms and
  553.         //     data structures like a hash table.
  554.         public override int GetHashCode();
  555.         //
  556.         // Summary:
  557.         //     Conjugates and renormalizes the quaternion.
  558.         public void Invert();
  559.         //
  560.         // Summary:
  561.         //     Conjugates and renormalizes the quaternion.
  562.         //
  563.         // Parameters:
  564.         //   value:
  565.         //     The quaternion to conjugate and renormalize.
  566.         //
  567.         // Returns:
  568.         //     The conjugated and renormalized quaternion.
  569.         public static Quaternion Invert(Quaternion value);
  570.         //
  571.         // Summary:
  572.         //     Conjugates and renormalizes the quaternion.
  573.         //
  574.         // Parameters:
  575.         //   value:
  576.         //     The quaternion to conjugate and renormalize.
  577.         //
  578.         //   result:
  579.         //     When the method completes, contains the conjugated and renormalized quaternion.
  580.         public static void Invert(ref Quaternion value, out Quaternion result);
  581.         //
  582.         // Summary:
  583.         //     Calculates the length of the quaternion.
  584.         //
  585.         // Returns:
  586.         //     The length of the quaternion.
  587.         //
  588.         // Remarks:
  589.         //     SharpDX.Quaternion.LengthSquared() may be preferred when only the relative
  590.         //     length is needed and speed is of the essence.
  591.         public float Length();
  592.         //
  593.         // Summary:
  594.         //     Calculates the squared length of the quaternion.
  595.         //
  596.         // Returns:
  597.         //     The squared length of the quaternion.
  598.         //
  599.         // Remarks:
  600.         //     This method may be preferred to SharpDX.Quaternion.Length() when only a relative
  601.         //     length is needed and speed is of the essence.
  602.         public float LengthSquared();
  603.         //
  604.         // Summary:
  605.         //     Performs a linear interpolation between two quaternion.
  606.         //
  607.         // Parameters:
  608.         //   start:
  609.         //     Start quaternion.
  610.         //
  611.         //   end:
  612.         //     End quaternion.
  613.         //
  614.         //   amount:
  615.         //     Value between 0 and 1 indicating the weight of end.
  616.         //
  617.         // Returns:
  618.         //     The linear interpolation of the two quaternions.
  619.         //
  620.         // Remarks:
  621.         //     This method performs the linear interpolation based on the following formula.
  622.         //      start + (end - start) * amount Passing amount a value of 0 will cause start
  623.         //     to be returned; a value of 1 will cause end to be returned.
  624.         public static Quaternion Lerp(Quaternion start, Quaternion end, float amount);
  625.         //
  626.         // Summary:
  627.         //     Performs a linear interpolation between two quaternions.
  628.         //
  629.         // Parameters:
  630.         //   start:
  631.         //     Start quaternion.
  632.         //
  633.         //   end:
  634.         //     End quaternion.
  635.         //
  636.         //   amount:
  637.         //     Value between 0 and 1 indicating the weight of end.
  638.         //
  639.         //   result:
  640.         //     When the method completes, contains the linear interpolation of the two quaternions.
  641.         //
  642.         // Remarks:
  643.         //     This method performs the linear interpolation based on the following formula.
  644.         //      start + (end - start) * amount Passing amount a value of 0 will cause start
  645.         //     to be returned; a value of 1 will cause end to be returned.
  646.         public static void Lerp(ref Quaternion start, ref Quaternion end, float amount, out Quaternion result);
  647.         //
  648.         // Summary:
  649.         //     Calculates the natural logarithm of the specified quaternion.
  650.         //
  651.         // Parameters:
  652.         //   value:
  653.         //     The quaternion whose logarithm will be calculated.
  654.         //
  655.         // Returns:
  656.         //     The natural logarithm of the quaternion.
  657.         public static Quaternion Logarithm(Quaternion value);
  658.         //
  659.         // Summary:
  660.         //     Calculates the natural logarithm of the specified quaternion.
  661.         //
  662.         // Parameters:
  663.         //   value:
  664.         //     The quaternion whose logarithm will be calculated.
  665.         //
  666.         //   result:
  667.         //     When the method completes, contains the natural logarithm of the quaternion.
  668.         public static void Logarithm(ref Quaternion value, out Quaternion result);
  669.         //
  670.         // Summary:
  671.         //     Scales a quaternion by the given value.
  672.         //
  673.         // Parameters:
  674.         //   value:
  675.         //     The quaternion to scale.
  676.         //
  677.         //   scale:
  678.         //     The amount by which to scale the quaternion.
  679.         //
  680.         // Returns:
  681.         //     The scaled quaternion.
  682.         public static Quaternion Multiply(Quaternion value, float scale);
  683.         //
  684.         // Summary:
  685.         //     Multiplies a quaternion by another.
  686.         //
  687.         // Parameters:
  688.         //   left:
  689.         //     The first quaternion to multiply.
  690.         //
  691.         //   right:
  692.         //     The second quaternion to multiply.
  693.         //
  694.         // Returns:
  695.         //     The multiplied quaternion.
  696.         public static Quaternion Multiply(Quaternion left, Quaternion right);
  697.         //
  698.         // Summary:
  699.         //     Scales a quaternion by the given value.
  700.         //
  701.         // Parameters:
  702.         //   value:
  703.         //     The quaternion to scale.
  704.         //
  705.         //   scale:
  706.         //     The amount by which to scale the quaternion.
  707.         //
  708.         //   result:
  709.         //     When the method completes, contains the scaled quaternion.
  710.         public static void Multiply(ref Quaternion value, float scale, out Quaternion result);
  711.         //
  712.         // Summary:
  713.         //     Multiplies a quaternion by another.
  714.         //
  715.         // Parameters:
  716.         //   left:
  717.         //     The first quaternion to multiply.
  718.         //
  719.         //   right:
  720.         //     The second quaternion to multiply.
  721.         //
  722.         //   result:
  723.         //     When the method completes, contains the multiplied quaternion.
  724.         public static void Multiply(ref Quaternion left, ref Quaternion right, out Quaternion result);
  725.         //
  726.         // Summary:
  727.         //     Reverses the direction of a given quaternion.
  728.         //
  729.         // Parameters:
  730.         //   value:
  731.         //     The quaternion to negate.
  732.         //
  733.         // Returns:
  734.         //     A quaternion facing in the opposite direction.
  735.         public static Quaternion Negate(Quaternion value);
  736.         //
  737.         // Summary:
  738.         //     Reverses the direction of a given quaternion.
  739.         //
  740.         // Parameters:
  741.         //   value:
  742.         //     The quaternion to negate.
  743.         //
  744.         //   result:
  745.         //     When the method completes, contains a quaternion facing in the opposite direction.
  746.         public static void Negate(ref Quaternion value, out Quaternion result);
  747.         //
  748.         // Summary:
  749.         //     Converts the quaternion into a unit quaternion.
  750.         public void Normalize();
  751.         //
  752.         // Summary:
  753.         //     Converts the quaternion into a unit quaternion.
  754.         //
  755.         // Parameters:
  756.         //   value:
  757.         //     The quaternion to normalize.
  758.         //
  759.         // Returns:
  760.         //     The normalized quaternion.
  761.         public static Quaternion Normalize(Quaternion value);
  762.         //
  763.         // Summary:
  764.         //     Converts the quaternion into a unit quaternion.
  765.         //
  766.         // Parameters:
  767.         //   value:
  768.         //     The quaternion to normalize.
  769.         //
  770.         //   result:
  771.         //     When the method completes, contains the normalized quaternion.
  772.         public static void Normalize(ref Quaternion value, out Quaternion result);
  773.         //
  774.         // Summary:
  775.         //     Creates a quaternion given a rotation and an axis.
  776.         //
  777.         // Parameters:
  778.         //   axis:
  779.         //     The axis of rotation.
  780.         //
  781.         //   angle:
  782.         //     The angle of rotation.
  783.         //
  784.         // Returns:
  785.         //     The newly created quaternion.
  786.         public static Quaternion RotationAxis(Vector3 axis, float angle);
  787.         //
  788.         // Summary:
  789.         //     Creates a quaternion given a rotation and an axis.
  790.         //
  791.         // Parameters:
  792.         //   axis:
  793.         //     The axis of rotation.
  794.         //
  795.         //   angle:
  796.         //     The angle of rotation.
  797.         //
  798.         //   result:
  799.         //     When the method completes, contains the newly created quaternion.
  800.         public static void RotationAxis(ref Vector3 axis, float angle, out Quaternion result);
  801.         //
  802.         // Summary:
  803.         //     Creates a quaternion given forward and up vectors
  804.         //
  805.         // Parameters:
  806.         //   forward:
  807.         //     The forward vector the quaternion should look at
  808.         //
  809.         //   up:
  810.         //     The up vector of the quaternion (must be perpendicular to forward vector)
  811.         //
  812.         //   right:
  813.         //     The right vector of the quaternion
  814.         //
  815.         // Returns:
  816.         //     The newly created quaternion
  817.         public static Quaternion RotationLookAt(Vector3 forward, Vector3 up, Vector3 right);
  818.         //
  819.         // Summary:
  820.         //     Creates a quaternion given forward and up vectors
  821.         //
  822.         // Parameters:
  823.         //   forward:
  824.         //     The forward vector the quaternion should look at
  825.         //
  826.         //   up:
  827.         //     The up vector of the quaternion (must be perpendicular to forward vector)
  828.         //
  829.         //   right:
  830.         //     The right vector of the quaternion (must be perpendicular to forward vector)
  831.         //
  832.         //   result:
  833.         //     The newly created quaternion
  834.         public static void RotationLookAt(ref Vector3 forward, ref Vector3 up, ref Vector3 right, out Quaternion result);
  835.         //
  836.         // Summary:
  837.         //     Creates a quaternion given left-handed forward and up vectors
  838.         //
  839.         // Parameters:
  840.         //   forward:
  841.         //     The forward vector the quaternion should look at
  842.         //
  843.         //   up:
  844.         //     The up vector of the quaternion (must be perpendicular to forward vector)
  845.         //
  846.         // Returns:
  847.         //     The newly created quaternion
  848.         public static Quaternion RotationLookAtLH(Vector3 forward, Vector3 up);
  849.         //
  850.         // Summary:
  851.         //     Creates a quaternion given left-handed forward and up vectors
  852.         //
  853.         // Parameters:
  854.         //   forward:
  855.         //     The forward vector the quaternion should look at
  856.         //
  857.         //   up:
  858.         //     The up vector of the quaternion (must be perpendicular to forward vector)
  859.         //
  860.         //   result:
  861.         //     The newly created quaternion
  862.         public static void RotationLookAtLH(ref Vector3 forward, ref Vector3 up, out Quaternion result);
  863.         //
  864.         // Summary:
  865.         //     Creates a quaternion given right-handed forward and up vectors
  866.         //
  867.         // Parameters:
  868.         //   forward:
  869.         //     The forward vector the quaternion should look at
  870.         //
  871.         //   up:
  872.         //     The up vector of the quaternion (must be perpendicular to forward vector)
  873.         //
  874.         // Returns:
  875.         //     The newly created quaternion
  876.         public static Quaternion RotationLookAtRH(Vector3 forward, Vector3 up);
  877.         //
  878.         // Summary:
  879.         //     Creates a quaternion given right-handed forward and up vectors
  880.         //
  881.         // Parameters:
  882.         //   forward:
  883.         //     The forward vector the quaternion should look at
  884.         //
  885.         //   up:
  886.         //     The up vector of the quaternion (must be perpendicular to forward vector)
  887.         //
  888.         //   result:
  889.         //     The newly created quaternion
  890.         public static void RotationLookAtRH(ref Vector3 forward, ref Vector3 up, out Quaternion result);
  891.         //
  892.         // Summary:
  893.         //     Creates a quaternion given a rotation matrix.
  894.         //
  895.         // Parameters:
  896.         //   matrix:
  897.         //     The rotation matrix.
  898.         //
  899.         // Returns:
  900.         //     The newly created quaternion.
  901.         public static Quaternion RotationMatrix(Matrix matrix);
  902.         //
  903.         // Summary:
  904.         //     Creates a quaternion given a rotation matrix.
  905.         //
  906.         // Parameters:
  907.         //   matrix:
  908.         //     The rotation matrix.
  909.         //
  910.         //   result:
  911.         //     When the method completes, contains the newly created quaternion.
  912.         public static void RotationMatrix(ref Matrix matrix, out Quaternion result);
  913.         //
  914.         // Summary:
  915.         //     Creates a quaternion given a rotation matrix.
  916.         //
  917.         // Parameters:
  918.         //   matrix:
  919.         //     The rotation matrix.
  920.         //
  921.         //   result:
  922.         //     When the method completes, contains the newly created quaternion.
  923.         public static void RotationMatrix(ref Matrix3x3 matrix, out Quaternion result);
  924.         //
  925.         // Summary:
  926.         //     Creates a quaternion given a yaw, pitch, and roll value.
  927.         //
  928.         // Parameters:
  929.         //   yaw:
  930.         //     The yaw of rotation.
  931.         //
  932.         //   pitch:
  933.         //     The pitch of rotation.
  934.         //
  935.         //   roll:
  936.         //     The roll of rotation.
  937.         //
  938.         // Returns:
  939.         //     The newly created quaternion.
  940.         public static Quaternion RotationYawPitchRoll(float yaw, float pitch, float roll);
  941.         //
  942.         // Summary:
  943.         //     Creates a quaternion given a yaw, pitch, and roll value.
  944.         //
  945.         // Parameters:
  946.         //   yaw:
  947.         //     The yaw of rotation.
  948.         //
  949.         //   pitch:
  950.         //     The pitch of rotation.
  951.         //
  952.         //   roll:
  953.         //     The roll of rotation.
  954.         //
  955.         //   result:
  956.         //     When the method completes, contains the newly created quaternion.
  957.         public static void RotationYawPitchRoll(float yaw, float pitch, float roll, out Quaternion result);
  958.         //
  959.         // Summary:
  960.         //     Interpolates between two quaternions, using spherical linear interpolation.
  961.         //
  962.         // Parameters:
  963.         //   start:
  964.         //     Start quaternion.
  965.         //
  966.         //   end:
  967.         //     End quaternion.
  968.         //
  969.         //   amount:
  970.         //     Value between 0 and 1 indicating the weight of end.
  971.         //
  972.         // Returns:
  973.         //     The spherical linear interpolation of the two quaternions.
  974.         public static Quaternion Slerp(Quaternion start, Quaternion end, float amount);
  975.         //
  976.         // Summary:
  977.         //     Interpolates between two quaternions, using spherical linear interpolation.
  978.         //
  979.         // Parameters:
  980.         //   start:
  981.         //     Start quaternion.
  982.         //
  983.         //   end:
  984.         //     End quaternion.
  985.         //
  986.         //   amount:
  987.         //     Value between 0 and 1 indicating the weight of end.
  988.         //
  989.         //   result:
  990.         //     When the method completes, contains the spherical linear interpolation of
  991.         //     the two quaternions.
  992.         public static void Slerp(ref Quaternion start, ref Quaternion end, float amount, out Quaternion result);
  993.         //
  994.         // Summary:
  995.         //     Interpolates between quaternions, using spherical quadrangle interpolation.
  996.         //
  997.         // Parameters:
  998.         //   value1:
  999.         //     First source quaternion.
  1000.         //
  1001.         //   value2:
  1002.         //     Second source quaternion.
  1003.         //
  1004.         //   value3:
  1005.         //     Third source quaternion.
  1006.         //
  1007.         //   value4:
  1008.         //     Fourth source quaternion.
  1009.         //
  1010.         //   amount:
  1011.         //     Value between 0 and 1 indicating the weight of interpolation.
  1012.         //
  1013.         // Returns:
  1014.         //     The spherical quadrangle interpolation of the quaternions.
  1015.         public static Quaternion Squad(Quaternion value1, Quaternion value2, Quaternion value3, Quaternion value4, float amount);
  1016.         //
  1017.         // Summary:
  1018.         //     Interpolates between quaternions, using spherical quadrangle interpolation.
  1019.         //
  1020.         // Parameters:
  1021.         //   value1:
  1022.         //     First source quaternion.
  1023.         //
  1024.         //   value2:
  1025.         //     Second source quaternion.
  1026.         //
  1027.         //   value3:
  1028.         //     Third source quaternion.
  1029.         //
  1030.         //   value4:
  1031.         //     Fourth source quaternion.
  1032.         //
  1033.         //   amount:
  1034.         //     Value between 0 and 1 indicating the weight of interpolation.
  1035.         //
  1036.         //   result:
  1037.         //     When the method completes, contains the spherical quadrangle interpolation
  1038.         //     of the quaternions.
  1039.         public static void Squad(ref Quaternion value1, ref Quaternion value2, ref Quaternion value3, ref Quaternion value4, float amount, out Quaternion result);
  1040.         //
  1041.         // Summary:
  1042.         //     Sets up control points for spherical quadrangle interpolation.
  1043.         //
  1044.         // Parameters:
  1045.         //   value1:
  1046.         //     First source quaternion.
  1047.         //
  1048.         //   value2:
  1049.         //     Second source quaternion.
  1050.         //
  1051.         //   value3:
  1052.         //     Third source quaternion.
  1053.         //
  1054.         //   value4:
  1055.         //     Fourth source quaternion.
  1056.         //
  1057.         // Returns:
  1058.         //     An array of three quaternions that represent control points for spherical
  1059.         //     quadrangle interpolation.
  1060.         public static Quaternion[] SquadSetup(Quaternion value1, Quaternion value2, Quaternion value3, Quaternion value4);
  1061.         //
  1062.         // Summary:
  1063.         //     Subtracts two quaternions.
  1064.         //
  1065.         // Parameters:
  1066.         //   left:
  1067.         //     The first quaternion to subtract.
  1068.         //
  1069.         //   right:
  1070.         //     The second quaternion to subtract.
  1071.         //
  1072.         // Returns:
  1073.         //     The difference of the two quaternions.
  1074.         public static Quaternion Subtract(Quaternion left, Quaternion right);
  1075.         //
  1076.         // Summary:
  1077.         //     Subtracts two quaternions.
  1078.         //
  1079.         // Parameters:
  1080.         //   left:
  1081.         //     The first quaternion to subtract.
  1082.         //
  1083.         //   right:
  1084.         //     The second quaternion to subtract.
  1085.         //
  1086.         //   result:
  1087.         //     When the method completes, contains the difference of the two quaternions.
  1088.         public static void Subtract(ref Quaternion left, ref Quaternion right, out Quaternion result);
  1089.         //
  1090.         // Summary:
  1091.         //     Creates an array containing the elements of the quaternion.
  1092.         //
  1093.         // Returns:
  1094.         //     A four-element array containing the components of the quaternion.
  1095.         public float[] ToArray();
  1096.         //
  1097.         // Summary:
  1098.         //     Returns a System.String that represents this instance.
  1099.         //
  1100.         // Returns:
  1101.         //     A System.String that represents this instance.
  1102.         public override string ToString();
  1103.         //
  1104.         // Summary:
  1105.         //     Returns a System.String that represents this instance.
  1106.         //
  1107.         // Parameters:
  1108.         //   formatProvider:
  1109.         //     The format provider.
  1110.         //
  1111.         // Returns:
  1112.         //     A System.String that represents this instance.
  1113.         public string ToString(IFormatProvider formatProvider);
  1114.         //
  1115.         // Summary:
  1116.         //     Returns a System.String that represents this instance.
  1117.         //
  1118.         // Parameters:
  1119.         //   format:
  1120.         //     The format.
  1121.         //
  1122.         // Returns:
  1123.         //     A System.String that represents this instance.
  1124.         public string ToString(string format);
  1125.         //
  1126.         // Summary:
  1127.         //     Returns a System.String that represents this instance.
  1128.         //
  1129.         // Parameters:
  1130.         //   format:
  1131.         //     The format.
  1132.         //
  1133.         //   formatProvider:
  1134.         //     The format provider.
  1135.         //
  1136.         // Returns:
  1137.         //     A System.String that represents this instance.
  1138.         public string ToString(string format, IFormatProvider formatProvider);
  1139.     }
  1140. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement