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


C# core.Vector2d類代碼示例

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


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

示例1: dotProduct

 public float dotProduct(Vector2d v)
 {
     float ret = touchvgPINVOKE.Vector2d_dotProduct(swigCPtr, Vector2d.getCPtr(v));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:6,代碼來源:Vector2d.cs

示例2: subtract

 public Point2d subtract(Vector2d vec)
 {
     Point2d ret = new Point2d(touchvgPINVOKE.Point2d_subtract__SWIG_1(swigCPtr, Vector2d.getCPtr(vec)), true);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:6,代碼來源:Point2d.cs

示例3: cubicSplinesBox

 public static void cubicSplinesBox(Box2d box, int n, Point2d knots, Vector2d knotvs)
 {
     touchvgPINVOKE.mgnear_cubicSplinesBox__SWIG_2(Box2d.getCPtr(box), n, Point2d.getCPtr(knots), Vector2d.getCPtr(knotvs));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:5,代碼來源:mgnear.cs

示例4: offset

 public override bool offset(Vector2d vec, int segment)
 {
     bool ret = touchvgPINVOKE.MgEllipse_offset(swigCPtr, Vector2d.getCPtr(vec), segment);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:vvhh2002,項目名稱:TouchVG,代碼行數:6,代碼來源:MgEllipse.cs

示例5: offset

 public void offset(Vector2d vec)
 {
     touchvgPINVOKE.Point2d_offset__SWIG_1(swigCPtr, Vector2d.getCPtr(vec));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:5,代碼來源:Point2d.cs

示例6: getCPtr

 internal static HandleRef getCPtr(Vector2d obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:4,代碼來源:Vector2d.cs

示例7: kYAxis

 public static Vector2d kYAxis()
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_kYAxis(), false);
     return ret;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:5,代碼來源:Vector2d.cs

示例8: projectScaleToVector

 public float projectScaleToVector(Vector2d xAxis)
 {
     float ret = touchvgPINVOKE.Vector2d_projectScaleToVector(swigCPtr, Vector2d.getCPtr(xAxis));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:6,代碼來源:Vector2d.cs

示例9: resolveVector

 public bool resolveVector(Vector2d uAxis, Vector2d vAxis)
 {
     bool ret = touchvgPINVOKE.Vector2d_resolveVector__SWIG_1(swigCPtr, Vector2d.getCPtr(uAxis), Vector2d.getCPtr(vAxis));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:6,代碼來源:Vector2d.cs

示例10: negate

 public Vector2d negate()
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_negate(swigCPtr), false);
     return ret;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:5,代碼來源:Vector2d.cs

示例11: projectResolveVector

 public float projectResolveVector(Vector2d xAxis, Vector2d proj, Vector2d perp)
 {
     float ret = touchvgPINVOKE.Vector2d_projectResolveVector(swigCPtr, Vector2d.getCPtr(xAxis), Vector2d.getCPtr(proj), Vector2d.getCPtr(perp));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:6,代碼來源:Vector2d.cs

示例12: isRightOf

 public bool isRightOf(Vector2d vec)
 {
     bool ret = touchvgPINVOKE.Vector2d_isRightOf(swigCPtr, Vector2d.getCPtr(vec));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:6,代碼來源:Vector2d.cs

示例13: isPerpendicularTo

 public bool isPerpendicularTo(Vector2d vec)
 {
     bool ret = touchvgPINVOKE.Vector2d_isPerpendicularTo__SWIG_1(swigCPtr, Vector2d.getCPtr(vec));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:6,代碼來源:Vector2d.cs

示例14: isParallelTo

 public bool isParallelTo(Vector2d vec, Tol tol)
 {
     bool ret = touchvgPINVOKE.Vector2d_isParallelTo__SWIG_0(swigCPtr, Vector2d.getCPtr(vec), Tol.getCPtr(tol));
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:6,代碼來源:Vector2d.cs

示例15: transform

 public Vector2d transform(Matrix2d m)
 {
     Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_transform(swigCPtr, Matrix2d.getCPtr(m)), true);
     if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
開發者ID:stonelin129,項目名稱:Touchvg,代碼行數:6,代碼來源:Vector2d.cs


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