Isosurface.QEFProper.SMat3.Rot02 C# (CSharp) Method

Rot02() public method

public Rot02 ( float &c, float &s ) : void
c float
s float
return void
        public void Rot02(ref float c, ref float s)
        {
            Mat3.CalcSymmetricGivensCoefficients(m00, m02, m22, out c, out s);
            float cc = c * c;
            float ss = s * s;
            float mix = 2 * c * s * m02;
            SetSymmetric(cc * m00 - mix + ss * m22, c * m01 - s * m12, 0,
                       m11, s * m01 + c * m12, ss * m00 + mix + cc * m22);
        }

Usage Example

Example #1
0
        public static void Rotate02(ref SMat3 vtav, ref Mat3 v)
        {
            if (vtav.m02 == 0)
                return;

            float c = 0, s = 0;
            vtav.Rot02(c, s);
            v.Rot02_post(c, s);
        }
All Usage Examples Of Isosurface.QEFProper.SMat3::Rot02