Beispiel #1
0
        internal override gp_GTrsf2d GetMatrix()
        {
            var trsf = new gp_GTrsf2d();

            trsf.SetTranslationPart(new XY(_Tx, _Ty));
            return(trsf);
        }
Beispiel #2
0
        internal override gp_GTrsf2d GetMatrix()
        {
            var trsf = new gp_GTrsf2d();

            trsf.SetValue(1, 1, _Sx);
            trsf.SetValue(2, 2, _Sy);
            return(trsf);
        }
Beispiel #3
0
        internal override gp_GTrsf2d GetMatrix()
        {
            var trsf = new gp_GTrsf2d();

            trsf.SetValue(1, 1, 1);
            trsf.SetValue(2, 1, Math.Tan(_Skew.ToRad()));
            trsf.SetValue(1, 2, 0);
            trsf.SetValue(2, 2, 1);
            return(trsf);
        }
Beispiel #4
0
        internal override gp_GTrsf2d GetMatrix()
        {
            var trsf = new gp_GTrsf2d();

            trsf.SetValue(1, 1, _Values[0]);
            trsf.SetValue(2, 1, _Values[1]);
            trsf.SetValue(1, 2, _Values[2]);
            trsf.SetValue(2, 2, _Values[3]);
            trsf.SetTranslationPart(new XY(_Values[4], _Values[5]));
            return(trsf);
        }
        //--------------------------------------------------------------------------------------------------

        void _UpdateTransformMatrix()
        {
            _TransformMatrix = new gp_GTrsf2d();
            foreach (var transforms in _TransformStack)
            {
                if (transforms == null || transforms.Count == 0)
                {
                    continue;
                }

                foreach (var transform in transforms)
                {
                    _TransformMatrix.PreMultiply(transform.GetMatrix());
                }
            }
        }
Beispiel #6
0
 public Geom2d_Curve GTransform(Geom2d_Curve Curve, gp_GTrsf2d GTrsf)
 {
     throw new NotImplementedException();
 }
Beispiel #7
0
 public void Init(gp_GTrsf2d theValue)
 {
     throw new NotImplementedException();
 }
Beispiel #8
0
 public Approx_Array1OfGTrsf2d(gp_GTrsf2d theBegin, int theLower, int theUpper)
     : base()
 {
     throw new NotImplementedException();
 }
Beispiel #9
0
 public void SetValue(int theIndex, gp_GTrsf2d theItem)
 {
     throw new NotImplementedException();
 }
 public Approx_HArray1OfGTrsf2d(int theLower, int theUpper, gp_GTrsf2d theValue)
     : base()
 {
     throw new NotImplementedException();
 }