Exemple #1
0
 public PPoint2Df(PPoint2Df other) : this(PapillonPINVOKE.new_PPoint2Df__SWIG_5(PPoint2Df.getCPtr(other)), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #2
0
 public void SetPoint(int index, PPoint2Df pt)
 {
     PapillonPINVOKE.PPolygonf_SetPoint(swigCPtr, index, PPoint2Df.getCPtr(pt));
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void Add(PPoint2Df p)
 {
     PapillonPINVOKE.PPoint2DfList_Add(swigCPtr, PPoint2Df.getCPtr(p));
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #4
0
 public void SetOrigin(PPoint2Df origin)
 {
     PapillonPINVOKE.PDetection_SetOrigin(swigCPtr, PPoint2Df.getCPtr(origin));
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #5
0
    public PPolygonf Translated(PPoint2Df v)
    {
        PPolygonf ret = new PPolygonf(PapillonPINVOKE.PPolygonf_Translated(swigCPtr, PPoint2Df.getCPtr(v)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemple #6
0
    public bool Contains(PPoint2Df p)
    {
        bool ret = PapillonPINVOKE.PRectanglef_Contains(swigCPtr, PPoint2Df.getCPtr(p));

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemple #7
0
    public static PPoint2Df Middle(PPoint2Df A, PPoint2Df B)
    {
        PPoint2Df ret = new PPoint2Df(PapillonPINVOKE.PPoint2Df_Middle(PPoint2Df.getCPtr(A), PPoint2Df.getCPtr(B)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemple #8
0
    public float EuclideanDistance(PPoint2Df other)
    {
        float ret = PapillonPINVOKE.PPoint2Df_EuclideanDistance(swigCPtr, PPoint2Df.getCPtr(other));

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
 public PFeaturePoint(PPoint2Df location, string description, float confidence) : this(PapillonPINVOKE.new_PFeaturePoint__SWIG_2(PPoint2Df.getCPtr(location), description, confidence), true)
 {
     if (PapillonPINVOKE.SWIGPendingException.Pending)
     {
         throw PapillonPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #10
0
    public PResult DrawCircle(PPoint2Df p, int radius, PColour3i color)
    {
        PResult ret = new PResult(PapillonPINVOKE.PImage_DrawCircle__SWIG_1(swigCPtr, PPoint2Df.getCPtr(p), radius, PColour3i.getCPtr(color)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemple #11
0
    public PPolygonf AddPoint(PPoint2Df p)
    {
        PPolygonf ret = new PPolygonf(PapillonPINVOKE.PPolygonf_AddPoint__SWIG_3(swigCPtr, PPoint2Df.getCPtr(p)), false);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Exemple #12
0
    public PRectanglef Translated(PPoint2Df v)
    {
        PRectanglef ret = new PRectanglef(PapillonPINVOKE.PRectanglef_Translated__SWIG_1(swigCPtr, PPoint2Df.getCPtr(v)), true);

        if (PapillonPINVOKE.SWIGPendingException.Pending)
        {
            throw PapillonPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }