Extended .NET SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdGeQuaternion.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 OdGeQuaternion : 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 OdGeQuaternion(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(OdGeQuaternion 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 OdGeQuaternion() : this(GlobalsPINVOKE.new_OdGeQuaternion__SWIG_0(), true) {
53 }
54
55 public OdGeQuaternion(double ww, double xx, double yy, double zz) : this(GlobalsPINVOKE.new_OdGeQuaternion__SWIG_1(ww, xx, yy, zz), true) {
57 }
58
59 public OdGeQuaternion set(double ww, double xx, double yy, double zz) {
60 OdGeQuaternion ret = new OdGeQuaternion(GlobalsPINVOKE.OdGeQuaternion_set__SWIG_0(swigCPtr, ww, xx, yy, zz), false);
62 return ret;
63 }
64
65 public OdGeQuaternion set(OdGeMatrix3d matrix) {
68 return ret;
69 }
70
74 return ret;
75 }
76
77 public OdGePoint3d rotate(OdGePoint3d sourcePoint) {
80 return ret;
81 }
82
86 return ret;
87 }
88
92 return ret;
93 }
94
98 return ret;
99 }
100
101 public bool isEqualTo(OdGeQuaternion quat, OdGeTol tol) {
104 return ret;
105 }
106
107 public bool isEqualTo(OdGeQuaternion quat) {
110 return ret;
111 }
112
113 public bool IsEqual(OdGeQuaternion quat) {
116 return ret;
117 }
118
119 public bool IsNotEqual(OdGeQuaternion quat) {
122 return ret;
123 }
124
125 public OdGeQuaternion Mul(double scale) {
128 return ret;
129 }
130
131 public OdGeQuaternion Div(double scale) {
134 return ret;
135 }
136
140 return ret;
141 }
142
146 return ret;
147 }
148
152 return ret;
153 }
154
155 public double normSqrd() {
156 double ret = GlobalsPINVOKE.OdGeQuaternion_normSqrd(swigCPtr);
158 return ret;
159 }
160
161 public double norm() {
162 double ret = GlobalsPINVOKE.OdGeQuaternion_norm(swigCPtr);
164 return ret;
165 }
166
170 return ret;
171 }
172
176 return ret;
177 }
178
179 public double dotProduct(OdGeQuaternion quat) {
182 return ret;
183 }
184
185 public OdGeQuaternion slerp(OdGeQuaternion q, double t, bool bUseShortestPath) {
186 OdGeQuaternion ret = new OdGeQuaternion(GlobalsPINVOKE.OdGeQuaternion_slerp(swigCPtr, OdGeQuaternion.getCPtr(q), t, bUseShortestPath), true);
188 return ret;
189 }
190
191 public double w {
192 set {
195 }
196 get {
197 double ret = GlobalsPINVOKE.OdGeQuaternion_w_get(swigCPtr);
199 return ret;
200 }
201 }
202
203 public double x {
204 set {
207 }
208 get {
209 double ret = GlobalsPINVOKE.OdGeQuaternion_x_get(swigCPtr);
211 return ret;
212 }
213 }
214
215 public double y {
216 set {
219 }
220 get {
221 double ret = GlobalsPINVOKE.OdGeQuaternion_y_get(swigCPtr);
223 return ret;
224 }
225 }
226
227 public double z {
228 set {
231 }
232 get {
233 double ret = GlobalsPINVOKE.OdGeQuaternion_z_get(swigCPtr);
235 return ret;
236 }
237 }
238
239 public static OdGeQuaternion kIdentity {
240 get {
241 global::System.IntPtr cPtr = GlobalsPINVOKE.OdGeQuaternion_kIdentity_get();
242 OdGeQuaternion ret = (cPtr == global::System.IntPtr.Zero) ? null : new OdGeQuaternion(cPtr, false);
244 return ret;
245 }
246 }
247
248}
249
250}
static global::System.Exception Retrieve()
static global::System.IntPtr OdGeQuaternion_getMatrix(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeQuaternion_Add__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeQuaternion_slerp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, double jarg3, bool jarg4)
static double OdGeQuaternion_norm(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeQuaternion_rotate__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeQuaternion_set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeQuaternion_rotate__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeQuaternion_kIdentity_get()
static void OdGeQuaternion_x_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static bool OdGeQuaternion_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeQuaternion_z_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static void delete_OdGeQuaternion(global::System.Runtime.InteropServices.HandleRef jarg1)
static double OdGeQuaternion_y_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeQuaternion_Sub__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeQuaternion_IsNotEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGeQuaternion_y_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static void OdGeQuaternion_z_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static double OdGeQuaternion_normSqrd(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeQuaternion_normalize__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeQuaternion_dotProduct(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeQuaternion_w_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeQuaternion_Sub__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static double OdGeQuaternion_x_get(global::System.Runtime.InteropServices.HandleRef jarg1)
static global::System.IntPtr OdGeQuaternion_normalize__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1)
static bool OdGeQuaternion_isEqualTo__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeQuaternion_Div__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeQuaternion_set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2, double jarg3, double jarg4, double jarg5)
static bool OdGeQuaternion_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 OdGeQuaternion_rotateOpposite__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static global::System.IntPtr OdGeQuaternion_rotateOpposite__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2)
static void OdGeQuaternion_w_set(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static global::System.IntPtr OdGeQuaternion_Mul__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, double jarg2)
static HandleRef getCPtr(OdGeMatrix3d obj)
Definition: OdGeMatrix3d.cs:26
static HandleRef getCPtr(OdGePoint3d obj)
Definition: OdGePoint3d.cs:26
OdGeQuaternion Mul(double scale)
OdGePoint3d rotate(OdGePoint3d sourcePoint)
OdGeQuaternion(double ww, double xx, double yy, double zz)
double dotProduct(OdGeQuaternion quat)
OdGeVector3d rotate(OdGeVector3d vector)
bool IsEqual(OdGeQuaternion quat)
static OdGeQuaternion kIdentity
OdGeQuaternion Add(OdGeQuaternion quat)
OdGeQuaternion(IntPtr cPtr, bool cMemoryOwn)
OdGePoint3d rotateOpposite(OdGePoint3d sourcePoint)
virtual void Dispose(bool disposing)
bool IsNotEqual(OdGeQuaternion quat)
OdGeQuaternion slerp(OdGeQuaternion q, double t, bool bUseShortestPath)
static HandleRef getCPtr(OdGeQuaternion obj)
OdGeQuaternion normalize()
OdGeVector3d rotateOpposite(OdGeVector3d vector)
OdGeQuaternion normalize(OdGeTol tol)
OdGeQuaternion Div(double scale)
OdGeQuaternion Sub(OdGeQuaternion quat)
bool isEqualTo(OdGeQuaternion quat, OdGeTol tol)
bool isEqualTo(OdGeQuaternion quat)
static HandleRef getCPtr(OdGeTol obj)
Definition: OdGeTol.cs:26
static HandleRef getCPtr(OdGeVector3d obj)
Definition: OdGeVector3d.cs:26