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

Rot12() public method

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

Usage Example

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

            float c = 0, s = 0;

            vtav.Rot12(c, s);
            v.Rot12_post(c, s);
        }
All Usage Examples Of Isosurface.QEFProper.SMat3::Rot12