Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGePoint3d.cs
Go to the documentation of this file.
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
11namespace Teigha.Core {
12
13using System;
14using System.Runtime.InteropServices;
15
16public class OdGePoint3d : global::System.IDisposable {
17 private Object locker = new Object();
18 private HandleRef swigCPtr;
19 protected bool swigCMemOwn;
20 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
21 public OdGePoint3d(IntPtr cPtr, bool cMemoryOwn) {
22 swigCMemOwn = cMemoryOwn;
23 swigCPtr = new HandleRef(this, cPtr);
24 }
25 [System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
26 public static HandleRef getCPtr(OdGePoint3d obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
30 ~OdGePoint3d() {
31 Dispose(false);
32 }
33
34 public void Dispose() {
35 Dispose(true);
36 global::System.GC.SuppressFinalize(this);
37 }
38
39 protected virtual void Dispose(bool disposing) {
40 lock(this) {
41 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
42 if (swigCMemOwn) {
43 swigCMemOwn = false;
45 }
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
47 }
48 }
49 }
50
52 {
53 return p.Add(v);
54 }
56 {
57 return p.Sub(v);
58 }
60 {
61 return p.Sub(v);
62 }
63 public static OdGePoint3d operator *(OdGePoint3d v, double d)
64 {
65 return v.Mul(d);
66 }
67 public override string ToString()
68 {
69 if (swigCPtr.Handle == IntPtr.Zero) return "Empty";
70 return string.Format("({0},{1},{2})", x, y, z);
71 }
73 : this(GlobalsPINVOKE.new_OdGePoint3d__SWIG_1(point.x, point.y, point.z), true)
74 {
76 }
77
78 public OdGePoint3d() : this(GlobalsPINVOKE.new_OdGePoint3d__SWIG_0(), true) {
80 }
81
82 public OdGePoint3d(double xx, double yy, double zz) : this(GlobalsPINVOKE.new_OdGePoint3d__SWIG_1(xx, yy, zz), true) {
84 }
85
86 public OdGePoint3d(OdGePlanarEnt plane, OdGePoint2d pnt2d) : this(GlobalsPINVOKE.new_OdGePoint3d__SWIG_2(OdGePlanarEnt.getCPtr(plane), OdGePoint2d.getCPtr(pnt2d)), true) {
88 }
89
90 public static OdGePoint3d kOrigin {
91 get {
92 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGePoint3d_kOrigin_get();
93 OdGePoint3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGePoint3d(cPtr, false);
95 return ret;
96 }
97 }
98
102 return new OdGePoint3d(this);
103}
104
108 return new OdGePoint3d(this);
109}
110
111 public OdGePoint3d rotateBy(double angle, OdGeVector3d vect, OdGePoint3d basePoint) {
114 return new OdGePoint3d(this);
115}
116
117 public OdGePoint3d rotateBy(double angle, OdGeVector3d vect) {
120 return new OdGePoint3d(this);
121}
122
126 return new OdGePoint3d(this);
127}
128
129 public OdGePoint3d scaleBy(double scaleFactor, OdGePoint3d basePoint) {
130 OdGePoint3d ret = new OdGePoint3d(GlobalsPINVOKE.OdGePoint3d_scaleBy__SWIG_0(swigCPtr, scaleFactor, OdGePoint3d.getCPtr(basePoint)), false);
132 return ret;
133 }
134
135 public OdGePoint3d scaleBy(double scaleFactor) {
136 OdGePoint3d ret = new OdGePoint3d(GlobalsPINVOKE.OdGePoint3d_scaleBy__SWIG_1(swigCPtr, scaleFactor), false);
138 return ret;
139 }
140
144 return ret;
145 }
146
150 return ret;
151 }
152
153 public OdGePoint3d Mul(double scale) {
154 OdGePoint3d ret = new OdGePoint3d(GlobalsPINVOKE.OdGePoint3d_Mul__SWIG_0(swigCPtr, scale), true);
156 return ret;
157 }
158
159 public OdGePoint3d Div(double scale) {
160 OdGePoint3d ret = new OdGePoint3d(GlobalsPINVOKE.OdGePoint3d_Div__SWIG_0(swigCPtr, scale), true);
162 return ret;
163 }
164
168 return ret;
169 }
170
174 return ret;
175 }
176
180 return new OdGePoint3d(this);
181}
182
186 return ret;
187 }
188
192 return ret;
193 }
194
195 public double distanceTo(OdGePoint3d point) {
196 double ret = GlobalsPINVOKE.OdGePoint3d_distanceTo(swigCPtr, OdGePoint3d.getCPtr(point));
198 return ret;
199 }
200
201 public double distanceSqrdTo(OdGePoint3d point) {
202 double ret = GlobalsPINVOKE.OdGePoint3d_distanceSqrdTo(swigCPtr, OdGePoint3d.getCPtr(point));
204 return ret;
205 }
206
210 return ret;
211 }
212
216 return ret;
217 }
218
219 public bool IsEqual(OdGePoint3d point) {
220 bool ret = GlobalsPINVOKE.OdGePoint3d_IsEqual(swigCPtr, OdGePoint3d.getCPtr(point));
222 return ret;
223 }
224
225 public bool IsNotEqual(OdGePoint3d point) {
226 bool ret = GlobalsPINVOKE.OdGePoint3d_IsNotEqual(swigCPtr, OdGePoint3d.getCPtr(point));
228 return ret;
229 }
230
231 public bool isEqualTo(OdGePoint3d point, OdGeTol tol) {
234 return ret;
235 }
236
237 public bool isEqualTo(OdGePoint3d point) {
240 return ret;
241 }
242
243 public double GetItem(uint i) {
244 double ret = GlobalsPINVOKE.OdGePoint3d_GetItem__SWIG_0(swigCPtr, i);
246 return ret;
247 }
248
249 public OdGePoint3d set(double xx, double yy, double zz) {
250 GlobalsPINVOKE.OdGePoint3d_set__SWIG_0(swigCPtr, xx, yy, zz);
252 return new OdGePoint3d(this);
253}
254
255 public OdGePoint3d set(OdGePoint2d xy, double zz) {
258 return new OdGePoint3d(this);
259}
260
261 public OdGePoint3d set(OdGePoint2d xy) {
264 return new OdGePoint3d(this);
265}
266
267 public OdGePoint3d set(OdGePlanarEnt plane, OdGePoint2d point) {
270 return new OdGePoint3d(this);
271}
272
273 public double x {
274 set {
277 }
278 get {
279 double ret = GlobalsPINVOKE.OdGePoint3d_x_get(swigCPtr);
281 return ret;
282 }
283 }
284
285 public double y {
286 set {
289 }
290 get {
291 double ret = GlobalsPINVOKE.OdGePoint3d_y_get(swigCPtr);
293 return ret;
294 }
295 }
296
297 public double z {
298 set {
301 }
302 get {
303 double ret = GlobalsPINVOKE.OdGePoint3d_z_get(swigCPtr);
305 return ret;
306 }
307 }
308
312 return ret;
313 }
314
315}
316
317}
static global::System.Exception Retrieve()
static void OdGePoint3d_z_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdGePoint3d_x_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGePoint3d_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGePoint3d_set__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGePoint3d_kOrigin_get()
static double OdGePoint3d_y_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void OdGePoint3d_y_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGePoint3d_rotateBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4)
static global::System.IntPtr OdGePoint3d_project(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGePoint3d_Mul__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGePoint3d_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGePoint3d_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4)
static global::System.IntPtr OdGePoint3d_Sub__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGePoint3d_orthoProject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void delete_OdGePoint3d(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGePoint3d_transformBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGePoint3d_x_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGePoint3d_mirror(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGePoint3d_z_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGePoint3d_setToSum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGePoint3d_set__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static double OdGePoint3d_distanceTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGePoint3d_GetItem__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2)
static global::System.IntPtr OdGePoint3d_setToProduct(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGePoint3d_scaleBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGePoint3d_asVector__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGePoint3d_isEqualTo__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGePoint3d_Sub__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGePoint3d_isEqualTo__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGePoint3d_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
static global::System.IntPtr OdGePoint3d_Add__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGePoint3d_rotateBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGePoint3d_Div__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static double OdGePoint3d_distanceSqrdTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGePoint3d_convert2d__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGePoint3d_convert2d__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGePoint3d_scaleBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGePoint3d_swapWithPoint(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdGePlanarEnt obj)
static HandleRef getCPtr(OdGePlane obj)
Definition: OdGePlane.cs:25
static HandleRef getCPtr(OdGePoint2d obj)
Definition: OdGePoint2d.cs:26
OdGePoint2d convert2d()
Definition: OdGePoint3d.cs:147
OdGePoint3d Sub(OdGeVector3d vect)
Definition: OdGePoint3d.cs:171
bool IsEqual(OdGePoint3d point)
Definition: OdGePoint3d.cs:219
OdGeVector3d asVector()
Definition: OdGePoint3d.cs:189
OdGePoint3d setToSum(OdGePoint3d point, OdGeVector3d vect)
Definition: OdGePoint3d.cs:177
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
bool isEqualTo(OdGePoint3d point)
Definition: OdGePoint3d.cs:237
double distanceSqrdTo(OdGePoint3d point)
Definition: OdGePoint3d.cs:201
OdGePoint3d transformBy(OdGeMatrix3d xfm)
Definition: OdGePoint3d.cs:105
double distanceTo(OdGePoint3d point)
Definition: OdGePoint3d.cs:195
OdGePoint3d Div(double scale)
Definition: OdGePoint3d.cs:159
OdGeVector3d Sub(OdGePoint3d point)
Definition: OdGePoint3d.cs:183
OdGePoint3d mirror(OdGePlane plane)
Definition: OdGePoint3d.cs:123
OdGePoint3d scaleBy(double scaleFactor, OdGePoint3d basePoint)
Definition: OdGePoint3d.cs:129
OdGePoint3d project(OdGePlanarEnt plane, OdGeVector3d vect)
Definition: OdGePoint3d.cs:207
OdGePoint3d rotateBy(double angle, OdGeVector3d vect)
Definition: OdGePoint3d.cs:117
override string ToString()
Definition: OdGePoint3d.cs:67
static OdGePoint3d operator*(OdGePoint3d v, double d)
Definition: OdGePoint3d.cs:63
static OdGePoint3d kOrigin
Definition: OdGePoint3d.cs:90
bool isEqualTo(OdGePoint3d point, OdGeTol tol)
Definition: OdGePoint3d.cs:231
OdGePoint3d scaleBy(double scaleFactor)
Definition: OdGePoint3d.cs:135
OdGePoint3d swapWithPoint(OdGePoint3d point)
Definition: OdGePoint3d.cs:309
OdGePoint3d rotateBy(double angle, OdGeVector3d vect, OdGePoint3d basePoint)
Definition: OdGePoint3d.cs:111
OdGePoint2d convert2d(OdGePlanarEnt plane)
Definition: OdGePoint3d.cs:141
static OdGePoint3d operator-(OdGePoint3d p, OdGeVector3d v)
Definition: OdGePoint3d.cs:55
virtual void Dispose(bool disposing)
Definition: OdGePoint3d.cs:39
OdGePoint3d(double xx, double yy, double zz)
Definition: OdGePoint3d.cs:82
OdGePoint3d Mul(double scale)
Definition: OdGePoint3d.cs:153
OdGePoint3d(OdGePoint3d point)
Definition: OdGePoint3d.cs:72
OdGePoint3d orthoProject(OdGePlane plane)
Definition: OdGePoint3d.cs:213
OdGePoint3d Add(OdGeVector3d vect)
Definition: OdGePoint3d.cs:165
OdGePoint3d(OdGePlanarEnt plane, OdGePoint2d pnt2d)
Definition: OdGePoint3d.cs:86
static OdGePoint3d operator+(OdGePoint3d p, OdGeVector3d v)
Definition: OdGePoint3d.cs:51
OdGePoint3d(IntPtr cPtr, bool cMemoryOwn)
Definition: OdGePoint3d.cs:21
OdGePoint3d setToProduct(OdGeMatrix3d xfm, OdGePoint3d point)
Definition: OdGePoint3d.cs:99
double GetItem(uint i)
Definition: OdGePoint3d.cs:243
bool IsNotEqual(OdGePoint3d point)
Definition: OdGePoint3d.cs:225
static HandleRef getCPtr(OdGeTol obj)
Definition: OdGeTol.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26