Ejemplo n.º 1
0
        public void ToCoefficients(ref Matrix2d A, ref Vector2D B, ref double C)
        {
            Vector2D ratio0 = Axis0 / Extent[0];
            Vector2D ratio1 = Axis1 / Extent[1];

            A = new Matrix2d(ratio0, ratio0) + new Matrix2d(ratio1, ratio1);
            B = ((double)-2) * (A * Center);
            C = A.QForm(Center, Center) - (double)1;
        }