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

Rot01() public method

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

Usage Example

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

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