Extended .NET SDK Documentation 2025 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
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
104
110
116
122
128
134
135 public OdGePoint3d scaleBy(double scaleFactor, OdGePoint3d basePoint) {
136 OdGePoint3d ret = new OdGePoint3d(GlobalsPINVOKE.OdGePoint3d_scaleBy__SWIG_0(swigCPtr, scaleFactor, OdGePoint3d.getCPtr(basePoint)), false);
138 return ret;
139 }
140
141 public OdGePoint3d scaleBy(double scaleFactor) {
142 OdGePoint3d ret = new OdGePoint3d(GlobalsPINVOKE.OdGePoint3d_scaleBy__SWIG_1(swigCPtr, scaleFactor), false);
144 return ret;
145 }
146
152
158
159 public OdGePoint3d Mul(double scale) {
160 OdGePoint3d ret = new OdGePoint3d(GlobalsPINVOKE.OdGePoint3d_Mul__SWIG_0(swigCPtr, scale), true);
162 return ret;
163 }
164
165 public OdGePoint3d Div(double scale) {
166 OdGePoint3d ret = new OdGePoint3d(GlobalsPINVOKE.OdGePoint3d_Div__SWIG_0(swigCPtr, scale), true);
168 return ret;
169 }
170
176
182
188
194
200
201 public double distanceTo(OdGePoint3d point) {
202 double ret = GlobalsPINVOKE.OdGePoint3d_distanceTo(swigCPtr, OdGePoint3d.getCPtr(point));
204 return ret;
205 }
206
212
218
224
225 public bool IsEqual(OdGePoint3d point) {
226 bool ret = GlobalsPINVOKE.OdGePoint3d_IsEqual(swigCPtr, OdGePoint3d.getCPtr(point));
228 return ret;
229 }
230
231 public bool IsNotEqual(OdGePoint3d point) {
232 bool ret = GlobalsPINVOKE.OdGePoint3d_IsNotEqual(swigCPtr, OdGePoint3d.getCPtr(point));
234 return ret;
235 }
236
242
248
249 public double GetItem(uint i) {
250 double ret = GlobalsPINVOKE.OdGePoint3d_GetItem__SWIG_0(swigCPtr, i);
252 return ret;
253 }
254
255 public OdGePoint3d set(double xx, double yy, double zz) {
256 GlobalsPINVOKE.OdGePoint3d_set__SWIG_0(swigCPtr, xx, yy, zz);
258 return new OdGePoint3d(this);
259}
260
266
272
278
279 public double x {
280 set {
283 }
284 get {
285 double ret = GlobalsPINVOKE.OdGePoint3d_x_get(swigCPtr);
287 return ret;
288 }
289 }
290
291 public double y {
292 set {
295 }
296 get {
297 double ret = GlobalsPINVOKE.OdGePoint3d_y_get(swigCPtr);
299 return ret;
300 }
301 }
302
303 public double z {
304 set {
307 }
308 get {
309 double ret = GlobalsPINVOKE.OdGePoint3d_z_get(swigCPtr);
311 return ret;
312 }
313 }
314
320
321}
322
323}
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 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_transformBy__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
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_transformBy__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out OdGe.ErrorCondition jarg3)
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)
static HandleRef getCPtr(OdGePlanarEnt obj)
static HandleRef getCPtr(OdGePlane obj)
Definition OdGePlane.cs:25
static HandleRef getCPtr(OdGePoint2d obj)
OdGePoint2d convert2d()
OdGePoint3d Sub(OdGeVector3d vect)
bool IsEqual(OdGePoint3d point)
OdGeVector3d asVector()
OdGePoint3d setToSum(OdGePoint3d point, OdGeVector3d vect)
static HandleRef getCPtr(OdGePoint3d obj)
bool isEqualTo(OdGePoint3d point)
double distanceSqrdTo(OdGePoint3d point)
OdGePoint3d transformBy(OdGeMatrix3d xfm)
double distanceTo(OdGePoint3d point)
OdGePoint3d Div(double scale)
OdGeVector3d Sub(OdGePoint3d point)
OdGePoint3d mirror(OdGePlane plane)
OdGePoint3d scaleBy(double scaleFactor, OdGePoint3d basePoint)
OdGePoint3d transformBy(OdGeMatrix3d xfm, out OdGe.ErrorCondition status)
OdGePoint3d project(OdGePlanarEnt plane, OdGeVector3d vect)
OdGePoint3d rotateBy(double angle, OdGeVector3d vect)
override string ToString()
static OdGePoint3d operator*(OdGePoint3d v, double d)
static OdGePoint3d kOrigin
bool isEqualTo(OdGePoint3d point, OdGeTol tol)
OdGePoint3d scaleBy(double scaleFactor)
OdGePoint3d swapWithPoint(OdGePoint3d point)
OdGePoint3d rotateBy(double angle, OdGeVector3d vect, OdGePoint3d basePoint)
OdGePoint2d convert2d(OdGePlanarEnt plane)
static OdGePoint3d operator-(OdGePoint3d p, OdGeVector3d v)
virtual void Dispose(bool disposing)
OdGePoint3d(double xx, double yy, double zz)
OdGePoint3d Mul(double scale)
OdGePoint3d(OdGePoint3d point)
OdGePoint3d orthoProject(OdGePlane plane)
OdGePoint3d Add(OdGeVector3d vect)
OdGePoint3d(OdGePlanarEnt plane, OdGePoint2d pnt2d)
static OdGePoint3d operator+(OdGePoint3d p, OdGeVector3d v)
OdGePoint3d(IntPtr cPtr, bool cMemoryOwn)
OdGePoint3d setToProduct(OdGeMatrix3d xfm, OdGePoint3d point)
double GetItem(uint i)
bool IsNotEqual(OdGePoint3d point)
static HandleRef getCPtr(OdGeTol obj)
Definition OdGeTol.cs:26
static HandleRef getCPtr(OdGeVector3d obj)