Пример #1
0
 private void method_7()
 {
     this.class89_1   = new Class89();
     this.class89_0   = new Class89();
     this.class89_2   = new Class89();
     this.arrayList_0 = new ArrayList();
     this.arrayList_1 = new ArrayList();
     this.arrayList_2 = new ArrayList();
     this.arrayList_3 = new ArrayList();
     this.class241_0  = new Class241(this);
     this.class468_0  = new Class468(this);
     this.class973_0  = new Class973(this);
     this.class918_0  = new Class918(this);
     this.class569_0  = new Class569(this);
     this.class471_0  = new Class471(this);
     this.class470_0  = new Class470(this);
     this.class850_0  = new Class850(this);
     this.class691_0  = new Class691(this);
     this.class690_0  = new Class690(this);
     this.class528_0  = new Class528(this);
     this.hashtable_0 = new Hashtable();
     this.class476_0  = new Class476();
     this.class88_0   = new Class88(this);
     this.class88_0.method_0();
     new Class1094(this).method_0();
     this.arrayList_3.Clear();
     new Class793(this).method_0();
     this.openDocumentWritingStage_0 = OpenDocumentWritingStage.MathML;
     this.method_15().Accept(this);
     new Class239(this).method_0(this.method_6());
     new Class849(this).method_0();
     this.class476_0.method_3(this.class928_0.stream_0, this.method_6());
 }
Пример #2
0
        public override void imethod_3(
            Class95 loop,
            Class88 curve,
            Class107 coedge,
            Class917 approximation,
            Class258 accuracy)
        {
            Matrix4D    canonicalTransformation = this.FromCanonicalTransformation;
            Interface27 interval          = this.Interval;
            bool        directionReversed = coedge.DirectionReversed;
            Class102    startVertex       = coedge.StartVertex;
            Class102    endVertex         = coedge.EndVertex;
            Interface27 nterface27;

            if (startVertex != endVertex)
            {
                Matrix4D inverse  = canonicalTransformation.GetInverse();
                Class105 point1   = startVertex.Point;
                Class105 point2   = endVertex.Point;
                Point3D  point3D1 = point1.method_4(inverse);
                Point3D  point3D2 = point2.method_4(inverse);
                nterface27 = (Interface27) new Class437(System.Math.Atan2(point3D1.Y, point3D1.X), System.Math.Atan2(point3D2.Y, point3D2.X));
            }
            else
            {
                Matrix4D inverse = canonicalTransformation.GetInverse();
                Point3D  point3D = startVertex.Point.method_4(inverse);
                double   start   = System.Math.Atan2(point3D.Y, point3D.X);
                double   end     = directionReversed ? start - 2.0 * System.Math.PI : start + 2.0 * System.Math.PI;
                nterface27 = (Interface27) new Class437(start, end);
            }
            int    num1   = Class247.smethod_7(this.vector3D_1.GetLength(), accuracy);
            double start1 = nterface27.Start;
            double end1   = nterface27.End;

            if (directionReversed)
            {
                if (start1 < end1)
                {
                    end1 -= 2.0 * System.Math.PI;
                }
            }
            else if (start1 > end1)
            {
                end1 += 2.0 * System.Math.PI;
            }
            double num2 = (end1 - start1) / (double)num1;

            approximation.method_0(coedge.StartLocation);
            for (int index = 1; index < num1; ++index)
            {
                double  num3  = (double)index * num2 + start1;
                double  x     = System.Math.Cos(num3);
                double  y     = System.Math.Sin(num3);
                Point3D point = canonicalTransformation.Transform(new Point3D(x, y, 0.0));
                approximation.method_0(point);
            }
            approximation.method_0(coedge.EndLocation);
        }
Пример #3
0
    // Token: 0x0600043C RID: 1084 RVA: 0x00004960 File Offset: 0x00002B60
    public override Class80 vmethod_4()
    {
        Class88 @class = new Class88();

        @class.method_3(this.byte_0);
        @class.method_1(base.method_0());
        return(@class);
    }
Пример #4
0
 public virtual void imethod_3(
     Class95 loop,
     Class88 curve,
     Class107 coedge,
     Class917 approximation,
     Class258 accuracy)
 {
 }
Пример #5
0
 public override void imethod_3(
     Class95 loop,
     Class88 curve,
     Class107 coedge,
     Class917 approximation,
     Class258 accuracy)
 {
     this.class224_0.Approximation?.imethod_3(loop, curve, coedge, approximation, accuracy);
 }
Пример #6
0
 public override void imethod_3(
     Class95 loop,
     Class88 curve,
     Class107 coedge,
     Class917 approximation,
     Class258 accuracy)
 {
     approximation.method_0(coedge.StartLocation);
     approximation.method_0(coedge.EndLocation);
 }
Пример #7
0
        public override void imethod_3(
            Class95 loop,
            Class88 curve,
            Class107 coedge,
            Class917 approximation,
            Class258 accuracy)
        {
            double fitTolerance;

            if (!accuracy.Absolute)
            {
                Bounds3D controlPolygonBounds = this.splineCurve3D_0.ControlPolygonBounds;
                fitTolerance = accuracy.method_0(controlPolygonBounds.Delta.GetLength());
            }
            else
            {
                fitTolerance = accuracy.Epsilon;
            }
            Point3D[] fitPoints = this.splineCurve3D_0.CreateFitPoints(fitTolerance, 0.01);
            approximation.method_5((IEnumerable <Point3D>)fitPoints, curve.Reversed ^ coedge.DirectionReversed);
        }
Пример #8
0
    // Token: 0x06000148 RID: 328 RVA: 0x0000F174 File Offset: 0x0000D374
    public static Class80 smethod_1(object object_0, Type type_0)
    {
        Class80 @class = object_0 as Class80;

        if (@class != null)
        {
            return(@class);
        }
        if (type_0 == null)
        {
            if (object_0 == null)
            {
                return(new Class90());
            }
            type_0 = object_0.GetType();
        }
        type_0 = Class37.smethod_1(type_0);
        if (type_0 == Class175.type_0)
        {
            @class = new Class90();
            if (object_0 != null && object_0.GetType() != Class175.type_0)
            {
                @class.method_1(object_0.GetType());
            }
        }
        else if (Class29.smethod_0 <Array>(type_0))
        {
            @class = new Class93();
        }
        else if (Class29.smethod_0 <string>(type_0))
        {
            @class = new Class96();
        }
        else if (Class29.smethod_0 <IntPtr>(type_0))
        {
            @class = new Class99();
        }
        else if (Class29.smethod_0 <UIntPtr>(type_0))
        {
            @class = new Class83();
        }
        else if (Class29.smethod_0 <ulong>(type_0))
        {
            @class = new Class89();
        }
        else if (Class29.smethod_0 <uint>(type_0))
        {
            @class = new Class92();
        }
        else if (Class29.smethod_0 <ushort>(type_0))
        {
            @class = new Class87();
        }
        else if (Class29.smethod_0 <long>(type_0))
        {
            @class = new Class82();
        }
        else if (Class29.smethod_0 <int>(type_0))
        {
            @class = new Class98();
        }
        else if (Class29.smethod_0 <short>(type_0))
        {
            @class = new Class94();
        }
        else if (Class29.smethod_0 <byte>(type_0))
        {
            @class = new Class88();
        }
        else if (Class29.smethod_0 <sbyte>(type_0))
        {
            @class = new Class85();
        }
        else if (Class29.smethod_0 <double>(type_0))
        {
            @class = new Class86();
        }
        else if (Class29.smethod_0 <float>(type_0))
        {
            @class = new Class91();
        }
        else if (Class29.smethod_0 <bool>(type_0))
        {
            @class = new Class97();
        }
        else if (Class29.smethod_0 <char>(type_0))
        {
            @class = new Class81();
        }
        else if (Class175.smethod_0(type_0))
        {
            Class90 class2 = new Class90();
            class2.method_1(type_0);
            @class = class2;
        }
        else
        {
            if (Class29.smethod_0 <Enum>(type_0))
            {
                Enum enum_;
                if (object_0 == null)
                {
                    if (type_0 == Class175.type_2)
                    {
                        enum_ = null;
                    }
                    else
                    {
                        enum_ = (Enum)Activator.CreateInstance(type_0);
                    }
                }
                else if (type_0 == Class175.type_2 && object_0 is Enum)
                {
                    enum_ = (Enum)object_0;
                }
                else
                {
                    enum_ = (Enum)Enum.ToObject(type_0, object_0);
                }
                return(new Class84(enum_));
            }
            if (Class29.smethod_0 <ValueType>(type_0))
            {
                if (object_0 == null)
                {
                    object object_;
                    if (type_0 == Class175.type_3)
                    {
                        object_ = null;
                    }
                    else
                    {
                        object_ = Activator.CreateInstance(type_0);
                    }
                    @class = new Class107(object_);
                }
                else
                {
                    if (object_0.GetType() != type_0)
                    {
                        try
                        {
                            object_0 = Convert.ChangeType(object_0, type_0);
                        }
                        catch
                        {
                        }
                    }
                    @class = new Class107(object_0);
                }
                return(@class);
            }
            @class = new Class90();
        }
        if (object_0 != null)
        {
            @class.vmethod_1(object_0);
        }
        return(@class);
    }