示例#1
0
    public LineXY MaxCord()
    {
        LineXY ret = new LineXY(VisionLabPINVOKE.ChainCode_MaxCord(swigCPtr), true);

        if (VisionLabPINVOKE.SWIGPendingException.Pending)
        {
            throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public static LineXY LongestLineBetweenCoords(vector_XYCoord tab, ref int startIndex, ref int endIndex) {
   LineXY ret = new LineXY(VisionLabPINVOKE.LongestLineBetweenCoords__SWIG_0(vector_XYCoord.getCPtr(tab), ref startIndex, ref endIndex), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static double Distance(LineXY line, XYCoord p) {
   double ret = VisionLabPINVOKE.Distance__SWIG_1(LineXY.getCPtr(line), XYCoord.getCPtr(p));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public static void LineXYToCoords(LineXY xy, vector_XYCoord tab) {
   VisionLabPINVOKE.LineXYToCoords__SWIG_3(LineXY.getCPtr(xy), vector_XYCoord.getCPtr(tab));
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
 }
 public static vector_XYCoord LineXYToCoords(LineXY xy) {
   vector_XYCoord ret = new vector_XYCoord(VisionLabPINVOKE.LineXYToCoords__SWIG_1(LineXY.getCPtr(xy)), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 internal static HandleRef getCPtr(LineXY obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(LineXY obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
 public LineXY MaxCord() {
   LineXY ret = new LineXY(VisionLabPINVOKE.ChainCode_MaxCord(swigCPtr), true);
   if (VisionLabPINVOKE.SWIGPendingException.Pending) throw VisionLabPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 internal static HandleRef getCPtr(LineXY obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }