Inheritance: global::System.IDisposable
示例#1
0
 internal static HandleRef getCPtr(Matrix2d obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
示例#2
0
 public override void transform(Matrix2d mat)
 {
     touchvgPINVOKE.MgEllipse_transform(swigCPtr, Matrix2d.getCPtr(mat));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
示例#3
0
 public bool isEqualTo(Matrix2d mat) {
   bool ret = touchvgPINVOKE.Matrix2d_isEqualTo__SWIG_1(swigCPtr, Matrix2d.getCPtr(mat));
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#4
0
 public static Matrix2d rotation(float angle) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_rotation__SWIG_1(angle), true);
   return ret;
 }
示例#5
0
 public static Matrix2d mirroring(Point2d pnt, Vector2d dir) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_mirroring__SWIG_2(Point2d.getCPtr(pnt), Vector2d.getCPtr(dir)), true);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#6
0
 public Matrix2d setToRotation(float angle) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToRotation__SWIG_1(swigCPtr, angle), false);
   return ret;
 }
示例#7
0
 public Matrix2d setToMirroring(Point2d pnt, Vector2d dir) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToMirroring__SWIG_2(swigCPtr, Point2d.getCPtr(pnt), Vector2d.getCPtr(dir)), false);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#8
0
        public Matrix2d setToIdentity()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToIdentity(swigCPtr), false);

            return(ret);
        }
示例#9
0
        public Matrix2d set(float _m11, float _m12, float _m21, float _m22, float _dx, float _dy)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_set(swigCPtr, _m11, _m12, _m21, _m22, _dx, _dy), false);

            return(ret);
        }
示例#10
0
        public Matrix2d inverse()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_inverse(swigCPtr), true);

            return(ret);
        }
示例#11
0
 internal static HandleRef getCPtr(Matrix2d obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
示例#12
0
        public Matrix2d setToProduct(Matrix2d m1, Matrix2d m2)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToProduct(swigCPtr, Matrix2d.getCPtr(m1), Matrix2d.getCPtr(m2)), false);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#13
0
        public Matrix2d scaleBy(float s)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_scaleBy__SWIG_1(swigCPtr, s), false);

            return(ret);
        }
示例#14
0
        public static Matrix2d kIdentity()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_kIdentity(), false);

            return(ret);
        }
示例#15
0
 public static Matrix2d coordSystem(Point2d origin, float scaleX) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_coordSystem__SWIG_3(Point2d.getCPtr(origin), scaleX), true);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#16
0
        public Matrix2d setToRotation(float angle)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToRotation__SWIG_1(swigCPtr, angle), false);

            return(ret);
        }
示例#17
0
 public Matrix2d set(float _m11, float _m12, float _m21, float _m22, float _dx, float _dy) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_set(swigCPtr, _m11, _m12, _m21, _m22, _dx, _dy), false);
   return ret;
 }
示例#18
0
        public Matrix2d setToScaling(float scaleX, float scaleY)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToScaling__SWIG_3(swigCPtr, scaleX, scaleY), false);

            return(ret);
        }
示例#19
0
 public Matrix2d setToScaling(float scaleX, float scaleY) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToScaling__SWIG_3(swigCPtr, scaleX, scaleY), false);
   return ret;
 }
示例#20
0
        public Matrix2d setToMirroring()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToMirroring__SWIG_1(swigCPtr), false);

            return(ret);
        }
示例#21
0
 public static Matrix2d translation(Vector2d vec) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_translation(Vector2d.getCPtr(vec)), true);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#22
0
        public Matrix2d setToShearing(float sx, float sy)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToShearing__SWIG_1(swigCPtr, sx, sy), false);

            return(ret);
        }
示例#23
0
 public static Matrix2d scaling(float scaleX, float scaleY) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_scaling__SWIG_3(scaleX, scaleY), true);
   return ret;
 }
示例#24
0
        public static Matrix2d rotation(float angle)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_rotation__SWIG_1(angle), true);

            return(ret);
        }
示例#25
0
 public static Matrix2d shearing(float sx, float sy) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_shearing__SWIG_1(sx, sy), true);
   return ret;
 }
示例#26
0
        public static Matrix2d scaling(float scaleX, float scaleY)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_scaling__SWIG_3(scaleX, scaleY), true);

            return(ret);
        }
示例#27
0
        public virtual Matrix2d modelTransform()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.MgView_modelTransform(swigCPtr), false);

            return(ret);
        }
示例#28
0
        public static Matrix2d mirroring()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_mirroring__SWIG_1(), true);

            return(ret);
        }
示例#29
0
 public Matrix2d setCoordSystem(Vector2d e0, Vector2d e1, Point2d origin) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setCoordSystem(swigCPtr, Vector2d.getCPtr(e0), Vector2d.getCPtr(e1), Point2d.getCPtr(origin)), false);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#30
0
        public static Matrix2d shearing(float sx, float sy)
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_shearing__SWIG_1(sx, sy), true);

            return(ret);
        }
示例#31
0
 public static Matrix2d coordSystem(Vector2d e0, Vector2d e1, Point2d origin) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_coordSystem__SWIG_0(Vector2d.getCPtr(e0), Vector2d.getCPtr(e1), Point2d.getCPtr(origin)), true);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#32
0
 public virtual void transform(Matrix2d mat)
 {
     if (SwigDerivedClassHasMethod("transform", swigMethodTypes13))
     {
         touchvgPINVOKE.MgBaseShape_transformSwigExplicitMgBaseShape(swigCPtr, Matrix2d.getCPtr(mat));
     }
     else
     {
         touchvgPINVOKE.MgBaseShape_transform(swigCPtr, Matrix2d.getCPtr(mat));
     }
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }
示例#33
0
 public Matrix2d setToIdentity() {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToIdentity(swigCPtr), false);
   return ret;
 }
示例#34
0
        public Matrix2d worldToModel()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.GiTransform_worldToModel(swigCPtr), false);

            return(ret);
        }
示例#35
0
 public Matrix2d setToTranslation(Vector2d vec) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToTranslation(swigCPtr, Vector2d.getCPtr(vec)), false);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#36
0
        public Matrix2d displayToWorld()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.GiTransform_displayToWorld(swigCPtr), false);

            return(ret);
        }
示例#37
0
 public Matrix2d setToScaling(float scale, Point2d center) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToScaling__SWIG_0(swigCPtr, scale, Point2d.getCPtr(center)), false);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#38
0
        public Matrix2d displayToModel()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.GiTransform_displayToModel__SWIG_2(swigCPtr), false);

            return(ret);
        }
示例#39
0
 public Matrix2d setToMirroring() {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToMirroring__SWIG_1(swigCPtr), false);
   return ret;
 }
示例#40
0
        public Matrix2d modelToDisplay()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.GiTransform_modelToDisplay(swigCPtr), false);

            return(ret);
        }
示例#41
0
 public Matrix2d setToShearing(float sx, float sy) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToShearing__SWIG_1(swigCPtr, sx, sy), false);
   return ret;
 }
示例#42
0
        public int smoothForPoints(int count, Point2d points, Matrix2d m2d, float tol)
        {
            int ret = touchvgPINVOKE.MgSplines_smoothForPoints(swigCPtr, count, Point2d.getCPtr(points), Matrix2d.getCPtr(m2d), tol);

            if (touchvgPINVOKE.SWIGPendingException.Pending)
            {
                throw touchvgPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
示例#43
0
 public static Matrix2d rotation(float angle, Point2d center) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_rotation__SWIG_0(angle, Point2d.getCPtr(center)), true);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#44
0
        public Matrix2d modelTransform()
        {
            Matrix2d ret = new Matrix2d(touchvgPINVOKE.MgShapeDoc_modelTransform(swigCPtr), false);

            return(ret);
        }
示例#45
0
 public static Matrix2d scaling(float scaleX, float scaleY, Point2d center) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_scaling__SWIG_2(scaleX, scaleY, Point2d.getCPtr(center)), true);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#46
0
 public Matrix2d(Matrix2d src) : this(touchvgPINVOKE.new_Matrix2d__SWIG_1(Matrix2d.getCPtr(src)), true) {
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
示例#47
0
 public static Matrix2d mirroring() {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_mirroring__SWIG_1(), true);
   return ret;
 }
示例#48
0
 public Matrix2d postMultBy(Matrix2d rightSide) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_postMultBy(swigCPtr, Matrix2d.getCPtr(rightSide)), false);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#49
0
 public static Matrix2d shearing(float sx, float sy, Point2d pnt) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_shearing__SWIG_0(sx, sy, Point2d.getCPtr(pnt)), true);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#50
0
 public Matrix2d setToProduct(Matrix2d m1, Matrix2d m2) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToProduct(swigCPtr, Matrix2d.getCPtr(m1), Matrix2d.getCPtr(m2)), false);
   if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
示例#51
0
 public Matrix2d modelTransform()
 {
     Matrix2d ret = new Matrix2d(touchvgPINVOKE.MgShapeDoc_modelTransform(swigCPtr), false);
     return ret;
 }
示例#52
0
 public Matrix2d inverse() {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_inverse(swigCPtr), true);
   return ret;
 }
示例#53
0
 public Point2d transform(Matrix2d m)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_transform(swigCPtr, Matrix2d.getCPtr(m)), true);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
示例#54
0
 public GiSaveModelTransform(GiTransform xform, Matrix2d mat) : this(touchvgPINVOKE.new_GiSaveModelTransform(GiTransform.getCPtr(xform), Matrix2d.getCPtr(mat)), true)
 {
     if (touchvgPINVOKE.SWIGPendingException.Pending)
     {
         throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     }
 }