本文整理汇总了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;
}
示例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;
}
示例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();
}
示例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;
}
示例5: offset
public void offset(Vector2d vec)
{
touchvgPINVOKE.Point2d_offset__SWIG_1(swigCPtr, Vector2d.getCPtr(vec));
if (touchvgPINVOKE.SWIGPendingException.Pending) throw touchvgPINVOKE.SWIGPendingException.Retrieve();
}
示例6: getCPtr
internal static HandleRef getCPtr(Vector2d obj)
{
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
}
示例7: kYAxis
public static Vector2d kYAxis()
{
Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_kYAxis(), false);
return ret;
}
示例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;
}
示例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;
}
示例10: negate
public Vector2d negate()
{
Vector2d ret = new Vector2d(touchvgPINVOKE.Vector2d_negate(swigCPtr), false);
return ret;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}