Point2d.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. //------------------------------------------------------------------------------
  2. // <auto-generated />
  3. //
  4. // This file was automatically generated by SWIG (http://www.swig.org).
  5. // Version 4.0.2
  6. //
  7. // Do not make changes to this file unless you know what you are doing--modify
  8. // the SWIG interface file instead.
  9. //------------------------------------------------------------------------------
  10. public class Point2d : global::System.IDisposable {
  11. private global::System.Runtime.InteropServices.HandleRef swigCPtr;
  12. protected bool swigCMemOwn;
  13. internal Point2d(global::System.IntPtr cPtr, bool cMemoryOwn) {
  14. swigCMemOwn = cMemoryOwn;
  15. swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
  16. }
  17. internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Point2d obj) {
  18. return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
  19. }
  20. ~Point2d() {
  21. Dispose(false);
  22. }
  23. public void Dispose() {
  24. Dispose(true);
  25. global::System.GC.SuppressFinalize(this);
  26. }
  27. protected virtual void Dispose(bool disposing) {
  28. lock(this) {
  29. if (swigCPtr.Handle != global::System.IntPtr.Zero) {
  30. if (swigCMemOwn) {
  31. swigCMemOwn = false;
  32. GestureEstimatePINVOKE.delete_Point2d(swigCPtr);
  33. }
  34. swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
  35. }
  36. }
  37. }
  38. public Point2d() : this(GestureEstimatePINVOKE.new_Point2d__SWIG_0(), true) {
  39. }
  40. public Point2d(double _x, double _y) : this(GestureEstimatePINVOKE.new_Point2d__SWIG_1(_x, _y), true) {
  41. }
  42. public double dot(Point2d pt) {
  43. double ret = GestureEstimatePINVOKE.Point2d_dot(swigCPtr, Point2d.getCPtr(pt));
  44. if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve();
  45. return ret;
  46. }
  47. public double ddot(Point2d pt) {
  48. double ret = GestureEstimatePINVOKE.Point2d_ddot(swigCPtr, Point2d.getCPtr(pt));
  49. if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve();
  50. return ret;
  51. }
  52. public double cross(Point2d pt) {
  53. double ret = GestureEstimatePINVOKE.Point2d_cross(swigCPtr, Point2d.getCPtr(pt));
  54. if (GestureEstimatePINVOKE.SWIGPendingException.Pending) throw GestureEstimatePINVOKE.SWIGPendingException.Retrieve();
  55. return ret;
  56. }
  57. public double x {
  58. set {
  59. GestureEstimatePINVOKE.Point2d_x_set(swigCPtr, value);
  60. }
  61. get {
  62. double ret = GestureEstimatePINVOKE.Point2d_x_get(swigCPtr);
  63. return ret;
  64. }
  65. }
  66. public double y {
  67. set {
  68. GestureEstimatePINVOKE.Point2d_y_set(swigCPtr, value);
  69. }
  70. get {
  71. double ret = GestureEstimatePINVOKE.Point2d_y_get(swigCPtr);
  72. return ret;
  73. }
  74. }
  75. }