//------------------------------------------------------------------------------ // // // This file was automatically generated by SWIG (http://www.swig.org). // Version 4.0.2 // // Do not make changes to this file unless you know what you are doing--modify // the SWIG interface file instead. //------------------------------------------------------------------------------ public class Point2d : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; internal Point2d(global::System.IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Point2d obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } ~Point2d() { Dispose(false); } public void Dispose() { Dispose(true); global::System.GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { lock(this) { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; GestureEstimatePINVOKE.delete_Point2d(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } } } public Point2d() : this(GestureEstimatePINVOKE.new_Point2d__SWIG_0(), true) { } public Point2d(double _x, double _y) : this(GestureEstimatePINVOKE.new_Point2d__SWIG_1(_x, _y), true) { } public double dot(Point2d pt) { double ret = GestureEstimatePINVOKE.Point2d_dot(swigCPtr, Point2d.getCPtr(pt)); if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve(); return ret; } public double ddot(Point2d pt) { double ret = GestureEstimatePINVOKE.Point2d_ddot(swigCPtr, Point2d.getCPtr(pt)); if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve(); return ret; } public double cross(Point2d pt) { double ret = GestureEstimatePINVOKE.Point2d_cross(swigCPtr, Point2d.getCPtr(pt)); if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve(); return ret; } public double x { set { GestureEstimatePINVOKE.Point2d_x_set(swigCPtr, value); } get { double ret = GestureEstimatePINVOKE.Point2d_x_get(swigCPtr); return ret; } } public double y { set { GestureEstimatePINVOKE.Point2d_y_set(swigCPtr, value); } get { double ret = GestureEstimatePINVOKE.Point2d_y_get(swigCPtr); return ret; } } }