Isosurface.QEFProper.SMat3.Rot12 C# (CSharp) 메소드

Rot12() 공개 메소드

public Rot12 ( float &c, float &s ) : void
c float
s float
리턴 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

예제 #1
0
파일: SVD.cs 프로젝트: CaveLab/isosurface
        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