Extended .NET SDK Documentation 2025 SP0
Loading...
Searching...
No Matches
OdGeVector3d.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 OdGeVector3d : 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 OdGeVector3d(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(OdGeVector3d obj) {
27 return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
28 }
29
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
51 public static OdGeVector3d operator *(OdGeVector3d v, double d)
52 {
53 return v.Mul(d);
54 }
56 {
57 return v.Sub(d);
58 }
60 {
61 return v.Add(d);
62 }
64 {
65 return v.Sub();
66 }
67 public static OdGeVector3d operator /(OdGeVector3d v, double scale)
68 {
69 return v.Div(scale);
70 }
71 public override string ToString()
72 {
73 if (swigCPtr.Handle == IntPtr.Zero) return "Empty";
74 return string.Format("({0},{1},{2})", x, y, z);
75 }
77 : this(GlobalsPINVOKE.new_OdGeVector3d__SWIG_1(vect.x, vect.y, vect.z), true)
78 {
80 }
81
82 public OdGeVector3d() : this(GlobalsPINVOKE.new_OdGeVector3d__SWIG_0(), true) {
84 }
85
86 public OdGeVector3d(double xx, double yy, double zz) : this(GlobalsPINVOKE.new_OdGeVector3d__SWIG_1(xx, yy, zz), true) {
88 }
89
90 public OdGeVector3d(OdGePlanarEnt plane, OdGeVector2d vector2d) : this(GlobalsPINVOKE.new_OdGeVector3d__SWIG_2(OdGePlanarEnt.getCPtr(plane), OdGeVector2d.getCPtr(vector2d).Handle), true) {
92 }
93
94 public static OdGeVector3d kIdentity {
95 get {
96 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeVector3d_kIdentity_get();
97 OdGeVector3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeVector3d(cPtr, false);
99 return ret;
100 }
101 }
102
103 public static OdGeVector3d kXAxis {
104 get {
105 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeVector3d_kXAxis_get();
106 OdGeVector3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeVector3d(cPtr, false);
108 return ret;
109 }
110 }
111
112 public static OdGeVector3d kYAxis {
113 get {
114 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeVector3d_kYAxis_get();
115 OdGeVector3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeVector3d(cPtr, false);
117 return ret;
118 }
119 }
120
121 public static OdGeVector3d kZAxis {
122 get {
123 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeVector3d_kZAxis_get();
124 OdGeVector3d ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeVector3d(cPtr, false);
126 return ret;
127 }
128 }
129
135
141
147
153
159
165
171
172 public OdGeVector3d Mul(double scale) {
173 OdGeVector3d ret = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_Mul__SWIG_0(swigCPtr, scale), true);
175 return ret;
176 }
177
178 public OdGeVector3d Div(double scale) {
179 OdGeVector3d ret = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_Div__SWIG_0(swigCPtr, scale), true);
181 return ret;
182 }
183
189
195
202
208
214
220
226
232
233 public double angleTo(OdGeVector3d vect, OdGeVector3d refVector) {
236 return ret;
237 }
238
244
250
256
262
268
274
275 public double normalizeGetLength(double tol) {
278 return ret;
279 }
280
286
287 public double length() {
288 double ret = GlobalsPINVOKE.OdGeVector3d_length(swigCPtr);
290 return ret;
291 }
292
297
298 public double lengthSqrd() {
299 double ret = GlobalsPINVOKE.OdGeVector3d_lengthSqrd(swigCPtr);
301 return ret;
302 }
303
309
315
321
327
333
339
340 public bool isParallelTo(OdGeVector3d vect, OdGeTol tol, out OdGe.ErrorCondition status) {
341 bool ret = GlobalsPINVOKE.OdGeVector3d_isParallelTo__SWIG_2(swigCPtr, OdGeVector3d.getCPtr(vect), OdGeTol.getCPtr(tol), out status);
343 return ret;
344 }
345
351
357
363
369
375
381
382 public double dotProduct(OdGeVector3d vect) {
383 double ret = GlobalsPINVOKE.OdGeVector3d_dotProduct(swigCPtr, OdGeVector3d.getCPtr(vect));
385 return ret;
386 }
387
393
394 public OdGeVector3d project(OdGeVector3d planeNormal, OdGeVector3d projectDirection) {
395 OdGeVector3d ret = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_project__SWIG_0(swigCPtr, OdGeVector3d.getCPtr(planeNormal), OdGeVector3d.getCPtr(projectDirection)), true);
397 return ret;
398 }
399
400 public OdGeVector3d project(OdGeVector3d planeNormal, OdGeVector3d projectDirection, OdGeTol tol, out OdGe.ErrorCondition flag) {
401 OdGeVector3d ret = new OdGeVector3d(GlobalsPINVOKE.OdGeVector3d_project__SWIG_1(swigCPtr, OdGeVector3d.getCPtr(planeNormal), OdGeVector3d.getCPtr(projectDirection), OdGeTol.getCPtr(tol), out flag), true);
403 return ret;
404 }
405
411
417
418 public bool IsEqual(OdGeVector3d vect) {
419 bool ret = GlobalsPINVOKE.OdGeVector3d_IsEqual(swigCPtr, OdGeVector3d.getCPtr(vect));
421 return ret;
422 }
423
429
435
441
442 public double GetItem(uint i) {
443 double ret = GlobalsPINVOKE.OdGeVector3d_GetItem__SWIG_0(swigCPtr, i);
445 return ret;
446 }
447
453
454 public OdGeVector3d set(double xx, double yy, double zz) {
455 GlobalsPINVOKE.OdGeVector3d_set__SWIG_0(swigCPtr, xx, yy, zz);
457 return new OdGeVector3d(this);
458}
459
465
466 public double x {
467 set {
470 }
471 get {
472 double ret = GlobalsPINVOKE.OdGeVector3d_x_get(swigCPtr);
474 return ret;
475 }
476 }
477
478 public double y {
479 set {
482 }
483 get {
484 double ret = GlobalsPINVOKE.OdGeVector3d_y_get(swigCPtr);
486 return ret;
487 }
488 }
489
490 public double z {
491 set {
494 }
495 get {
496 double ret = GlobalsPINVOKE.OdGeVector3d_z_get(swigCPtr);
498 return ret;
499 }
500 }
501
502}
503
504}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGeVector3d_asPoint__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeVector3d_normalize__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, out OdGe.ErrorCondition jarg3)
static double OdGeVector3d_lengthSqrd(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeVector3d_setToSum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeVector3d_Sub__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeVector3d_kZAxis_get()
static global::System.IntPtr OdGeVector3d_convert2d__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeVector3d_isParallelTo__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static void OdGeVector3d_z_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeVector3d_perpVector(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeVector3d_negate(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeVector3d_kIdentity_get()
static double OdGeVector3d_angleTo__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGeVector3d_setLength(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static double OdGeVector3d_normalizeGetLength__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdGeVector3d_y_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeVector3d_Add__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeVector3d_isCodirectionalTo__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeVector3d_isZeroLength__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeVector3d_mirror(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeVector3d_GetItem__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2)
static bool OdGeVector3d_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeVector3d_normal__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeVector3d_orthoProject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, out OdGe.ErrorCondition jarg4)
static bool OdGeVector3d_isZeroLength__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeVector3d_normalizeGetLength__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeVector3d_normal__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGeVector3d_x_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeVector3d_isPerpendicularTo__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, out OdGe.ErrorCondition jarg4)
static global::System.IntPtr OdGeVector3d_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, IntPtr jarg3)
static global::System.IntPtr OdGeVector3d_orthoProject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGeVector3d_x_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeVector3d_setToProduct__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3)
static bool OdGeVector3d_isPerpendicularTo__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeVector3d_y_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGeVector3d(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeVector3d_isParallelTo__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeVector3d_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeVector3d_convert2d__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeVector3d_crossProduct(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeVector3d_Div__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeVector3d_project__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, out OdGe.ErrorCondition jarg5)
static double OdGeVector3d_length(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGeVector3d_z_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static uint OdGeVector3d_largestElement(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeVector3d_normalize__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeVector3d_isEqualTo__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeVector3d_isCodirectionalTo__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, out OdGe.ErrorCondition jarg4)
static global::System.IntPtr OdGeVector3d_transformBy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeVector3d_angleOnPlane(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeVector3d_normalize__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeVector3d_rotateBy(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static double OdGeVector3d_dotProduct(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeVector3d_angleTo__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static bool OdGeVector3d_isEqualTo__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static bool OdGeVector3d_isPerpendicularTo__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeVector3d_Mul__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeVector3d_isCodirectionalTo__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeVector3d_Sub__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeVector3d_isParallelTo__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, out OdGe.ErrorCondition jarg4)
static global::System.IntPtr OdGeVector3d_setToProduct__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static global::System.IntPtr OdGeVector3d_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4)
static bool OdGeVector3d_isUnitLength__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeVector3d_kXAxis_get()
static global::System.IntPtr OdGeVector3d_kYAxis_get()
static bool OdGeVector3d_isUnitLength__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeVector3d_project__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3)
static HandleRef getCPtr(OdGeMatrix3d obj)
static HandleRef getCPtr(OdGePlanarEnt obj)
static HandleRef getCPtr(OdGeTol obj)
Definition OdGeTol.cs:26
static HandleRef getCPtr(OdGeVector2d obj)
OdGeVector3d orthoProject(OdGeVector3d planeNormal, OdGeTol tol, out OdGe.ErrorCondition flag)
bool isParallelTo(OdGeVector3d vect, OdGeTol tol)
bool IsNotEqual(OdGeVector3d vect)
OdGeVector3d perpVector()
bool isPerpendicularTo(OdGeVector3d vect, OdGeTol tol, out OdGe.ErrorCondition status)
OdGeVector3d(OdGePlanarEnt plane, OdGeVector2d vector2d)
bool IsEqual(OdGeVector3d vect)
static OdGeVector3d operator-(OdGeVector3d v, OdGeVector3d d)
OdGeVector3d project(OdGeVector3d planeNormal, OdGeVector3d projectDirection, OdGeTol tol, out OdGe.ErrorCondition flag)
static OdGeVector3d kIdentity
OdGeVector3d orthoProject(OdGeVector3d planeNormal)
virtual void Dispose(bool disposing)
OdGeVector2d convert2d(OdGePlanarEnt plane)
bool isUnitLength(OdGeTol tol)
OdGeVector3d(IntPtr cPtr, bool cMemoryOwn)
bool isEqualTo(OdGeVector3d vect)
static OdGeVector3d operator*(OdGeVector3d v, double d)
OdGeVector3d setToProduct(OdGeMatrix3d matrix, OdGeVector3d vect)
static OdGeVector3d operator/(OdGeVector3d v, double scale)
bool isCodirectionalTo(OdGeVector3d vect)
OdGeVector3d normalize(OdGeTol tol, out OdGe.ErrorCondition status)
override string ToString()
OdGeVector3d(OdGeVector3d vect)
static OdGeVector3d kXAxis
OdGeVector3d mirror(OdGeVector3d normalToPlane)
static OdGeVector3d kYAxis
bool isPerpendicularTo(OdGeVector3d vect, OdGeTol tol)
bool isParallelTo(OdGeVector3d vect)
OdGeVector3d setToProduct(OdGeVector3d vect, double scale)
OdGeVector3d transformBy(OdGeMatrix3d xfm)
double dotProduct(OdGeVector3d vect)
OdGeVector3d normal(OdGeTol tol)
bool isCodirectionalTo(OdGeVector3d vect, OdGeTol tol)
void setLength(double length)
static HandleRef getCPtr(OdGeVector3d obj)
bool isParallelTo(OdGeVector3d vect, OdGeTol tol, out OdGe.ErrorCondition status)
OdGeVector3d Add(OdGeVector3d vect)
OdGeVector3d normalize(OdGeTol tol)
OdGeVector3d Sub(OdGeVector3d vect)
double angleTo(OdGeVector3d vect)
OdGeVector3d(double xx, double yy, double zz)
bool isEqualTo(OdGeVector3d vect, OdGeTol tol)
double angleOnPlane(OdGePlanarEnt plane)
OdGeVector3d rotateBy(double angle, OdGeVector3d axis)
double normalizeGetLength(double tol)
double angleTo(OdGeVector3d vect, OdGeVector3d refVector)
OdGeVector3d project(OdGeVector3d planeNormal, OdGeVector3d projectDirection)
OdGeVector3d setToSum(OdGeVector3d vector1, OdGeVector3d vector2)
OdGeVector3d Mul(double scale)
OdGeVector3d crossProduct(OdGeVector3d vect)
bool isPerpendicularTo(OdGeVector3d vect)
bool isZeroLength(OdGeTol tol)
bool isCodirectionalTo(OdGeVector3d vect, OdGeTol tol, out OdGe.ErrorCondition status)
OdGeVector3d Div(double scale)
static OdGeVector3d operator+(OdGeVector3d v, OdGeVector3d d)
static OdGeVector3d kZAxis