當前位置: 首頁>>代碼示例>>C#>>正文


C# core.Matrix2d類代碼示例

本文整理匯總了C#中touchvg.core.Matrix2d的典型用法代碼示例。如果您正苦於以下問題:C# Matrix2d類的具體用法?C# Matrix2d怎麽用?C# Matrix2d使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Matrix2d類屬於touchvg.core命名空間,在下文中一共展示了Matrix2d類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: postMultBy

 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;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:5,代碼來源:Matrix2d.cs

示例2: shearing

 public static Matrix2d shearing(float sx, float sy) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_shearing__SWIG_1(sx, sy), true);
   return ret;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:4,代碼來源:Matrix2d.cs

示例3: transform

 public override void transform(Matrix2d mat)
 {
     touchvgPINVOKE.MgEllipse_transform(swigCPtr, Matrix2d.getCPtr(mat));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:vvhh2002,項目名稱:TouchVG,代碼行數:5,代碼來源:MgEllipse.cs

示例4: scaling

 public static Matrix2d scaling(float scaleX, float scaleY) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_scaling__SWIG_3(scaleX, scaleY), true);
   return ret;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:4,代碼來源:Matrix2d.cs

示例5: mirroring

 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;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:5,代碼來源:Matrix2d.cs

示例6: translation

 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;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:5,代碼來源:Matrix2d.cs

示例7: rotation

 public static Matrix2d rotation(float angle) {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_rotation__SWIG_1(angle), true);
   return ret;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:4,代碼來源:Matrix2d.cs

示例8: coordSystem

 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;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:5,代碼來源:Matrix2d.cs

示例9: setCoordSystem

 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;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:5,代碼來源:Matrix2d.cs

示例10: getCPtr

 internal static HandleRef getCPtr(Matrix2d obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:3,代碼來源:Matrix2d.cs

示例11: isEqualTo

 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;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:5,代碼來源:Matrix2d.cs

示例12: inverse

 public Matrix2d inverse() {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_inverse(swigCPtr), true);
   return ret;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:4,代碼來源:Matrix2d.cs

示例13: setToProduct

 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;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:5,代碼來源:Matrix2d.cs

示例14: setToMirroring

 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;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:5,代碼來源:Matrix2d.cs

示例15: setToIdentity

 public Matrix2d setToIdentity() {
   Matrix2d ret = new Matrix2d(touchvgPINVOKE.Matrix2d_setToIdentity(swigCPtr), false);
   return ret;
 }
開發者ID:rhcad,項目名稱:touchvg-v0.6,代碼行數:4,代碼來源:Matrix2d.cs


注:本文中的touchvg.core.Matrix2d類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。