NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
MathUtils.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口的头文件:JA API
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// MathUtils.ja
9//
10// 生成方式:
11// apiwrap
12//
13// 警告:
14// 本文件由自动生成 - 请勿手动编辑
15//
16#pragma once
17#include <NXOpen/NXDeprecation.hxx>
18#include <vector>
19#include <NXOpen/NXString.hxx>
20#include <NXOpen/Callback.hxx>
21#include <NXOpen/TaggedObject.hxx>
22#include <NXOpen/ugmath.hxx>
23#include <NXOpen/libnxopencpp_exports.hxx>
24#ifdef _MSC_VER
25#pragma warning(push)
26#pragma warning(disable:4996)
27#endif
28#ifdef __GNUC__
29#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
30#endif
31namespace NXOpen
32{
33 class MathUtils;
34 class Session;
35 class MathUtilsImpl;
39 class NXOPENCPPEXPORT MathUtils
40 {
41 private: MathUtilsImpl * m_mathutils_impl;
42 private: NXOpen::Session* m_owner;
44 public: explicit MathUtils(NXOpen::Session *owner);
46 public:
48 tag_t Tag() const;
49 public: ~MathUtils();
54 (
55 const NXOpen::Matrix3x3 & original
56 );
61 (
62 const NXOpen::Matrix3x3 & matrix ,
63 const NXOpen::Vector3d & originalVector
64 );
69 (
70 const NXOpen::Matrix3x3 & matrix ,
71 const NXOpen::Point3d & originalPoint
72 );
76 public: bool Point3IsEqual
77 (
78 const NXOpen::Point3d & point ,
79 const NXOpen::Point3d & originalPoint
80 );
85 (
86 const NXOpen::Point3d & point ,
87 const NXOpen::Point3d & originalPoint ,
88 double tolerance
89 );
93 public: bool Point3NotEqual
94 (
95 const NXOpen::Point3d & point ,
96 const NXOpen::Point3d & originalPoint
97 );
101 public: bool Vector3IsEqual
102 (
103 const NXOpen::Vector3d & vector ,
104 const NXOpen::Vector3d & originalVector
105 );
110 (
111 const NXOpen::Vector3d & vector ,
112 const NXOpen::Vector3d & originalVector ,
113 double tolerance
114 );
118 public: bool Vector3NotEqual
119 (
120 const NXOpen::Vector3d & vector ,
121 const NXOpen::Vector3d & originalVector
122 );
126 public: bool Point2IsEqual
127 (
128 const NXOpen::Point2d & point ,
129 const NXOpen::Point2d & originalPoint
130 );
135 (
136 const NXOpen::Point3d & originalPoint ,
137 const NXOpen::Vector3d & vector
138 );
143 (
144 const NXOpen::Point3d & firstPoint ,
145 const NXOpen::Point3d & secondPoint
146 );
151 (
152 const NXOpen::Point3d & originalPoint ,
153 const NXOpen::Vector3d & vector
154 );
159 (
160 const NXOpen::Point3d & originalPoint ,
161 double scale
162 );
167 (
168 const NXOpen::Point3d & originalPoint ,
169 double scale
170 );
175 (
176 const NXOpen::Point3d & originalPoint ,
177 const NXOpen::Matrix3x3 & matrix
178 );
183 (
184 const NXOpen::Point3d & originalPoint ,
185 const NXOpen::Point3d & referencePoint
186 );
191 (
192 const NXOpen::Point3d & point
193 );
198 (
199 const NXOpen::Point3d & point
200 );
205 (
206 const NXOpen::Point3d & point ,
207 std::vector<double> & array
208 );
213 (
214 double value1 ,
215 double value2 ,
216 double value3
217 );
222 (
223 const std::vector<double> & array
224 );
229 (
230 const NXOpen::Point3d & point ,
231 int i
232 );
237 (
238 const NXOpen::Point3d & point ,
239 const NXOpen::Vector3d & vector
240 );
245 (
246 double value1 ,
247 double value2 ,
248 double value3
249 );
254 (
255 const std::vector<double> & array
256 );
261 (
262 const NXOpen::Vector3d & vector ,
263 int i
264 );
269 (
270 const NXOpen::Vector3d & vector1 ,
271 const NXOpen::Vector3d & vector2
272 );
277 (
278 const NXOpen::Vector3d & vector1 ,
279 const NXOpen::Vector3d & vector2
280 );
285 (
286 const NXOpen::Vector3d & originalVector ,
287 double scale
288 );
293 (
294 const NXOpen::Vector3d & originalVector ,
295 double scale
296 );
301 (
302 const NXOpen::Vector3d & originalVector
303 );
308 (
309 const NXOpen::Vector3d & vector1 ,
310 const NXOpen::Vector3d & vector2
311 );
315 public: double MagnitudeOfVector3
316 (
317 const NXOpen::Vector3d & vector
318 );
323 (
324 const NXOpen::Vector3d & vector ,
325 double tolerance
326 );
331 (
332 const NXOpen::Vector3d & vector
333 );
338 (
339 const NXOpen::Vector3d & vector
340 );
344 public: bool Vector2IsEqual
345 (
346 const NXOpen::Vector2d & vector ,
347 const NXOpen::Vector2d & originalVector
348 );
353 (
354 const NXOpen::Vector3d & vector ,
355 std::vector<double> & array
356 );
361 (
362 const NXOpen::Vector3d & vector1 ,
363 const NXOpen::Vector3d & vector2 ,
364 const NXOpen::Vector3d & orientationVector
365 );
369 public: double Vector3FindAngle
370 (
371 const NXOpen::Vector3d & vector1 ,
372 const NXOpen::Vector3d & vector2
373 );
377 public: double Vector3DotProduct
378 (
379 const NXOpen::Vector3d & vector1 ,
380 const NXOpen::Vector3d & vector2
381 );
385 public: bool Vector3IsParallel
386 (
387 const NXOpen::Vector3d & vector1 ,
388 const NXOpen::Vector3d & vector2 ,
389 double tolerance
390 );
395 (
396 const NXOpen::Vector3d & vector1 ,
397 const NXOpen::Vector3d & vector2 ,
398 double tolerance
399 );
404 (
405 const NXOpen::Vector3d & vector
406 );
411 (
412 const NXOpen::Point2d & point ,
413 const NXOpen::Point2d & originalPoint ,
414 double tolerance
415 );
419 public: bool Point2NotEqual
420 (
421 const NXOpen::Point2d & point ,
422 const NXOpen::Point2d & originalPoint
423 );
428 (
429 double value1 ,
430 double value2
431 );
436 (
437 const std::vector<double> & array
438 );
443 (
444 const NXOpen::Point2d & point ,
445 int i
446 );
451 (
452 const NXOpen::Point2d & firstPoint ,
453 const NXOpen::Point2d & secondPoint
454 );
459 (
460 const NXOpen::Vector2d & vector ,
461 const NXOpen::Vector2d & originalVector ,
462 double tolerance
463 );
468 (
469 const NXOpen::Point2d & originalPoint ,
470 const NXOpen::Vector2d & vector
471 );
476 (
477 const NXOpen::Point2d & originalPoint ,
478 const NXOpen::Vector2d & vector
479 );
484 (
485 const NXOpen::Point2d & originalPoint ,
486 double scale
487 );
492 (
493 const NXOpen::Point2d & originalPoint ,
494 double scale
495 );
500 (
501 const NXOpen::Point2d & originalPoint ,
502 const NXOpen::Point2d & referencePoint
503 );
508 (
509 const NXOpen::Point2d & point
510 );
515 (
516 const NXOpen::Point2d & point
517 );
522 (
523 const NXOpen::Point2d & point ,
524 std::vector<double> & array
525 );
530 (
531 double value1 ,
532 double value2
533 );
538 (
539 const std::vector<double> & array
540 );
545 (
546 const NXOpen::Vector2d & vector ,
547 int i
548 );
553 (
554 const NXOpen::Vector2d & vector1 ,
555 const NXOpen::Vector2d & vector2
556 );
561 (
562 const NXOpen::Vector2d & vector1 ,
563 const NXOpen::Vector2d & vector2
564 );
569 (
570 const NXOpen::Vector2d & originalVector ,
571 double scale
572 );
577 (
578 const NXOpen::Vector2d & originalVector ,
579 double scale
580 );
585 (
586 const NXOpen::Vector2d & originalVector
587 );
591 public: double Vector2DotProduct
592 (
593 const NXOpen::Vector2d & vector1 ,
594 const NXOpen::Vector2d & vector2
595 );
599 public: double Vector2CrossProduct
600 (
601 const NXOpen::Vector2d & vector1 ,
602 const NXOpen::Vector2d & vector2
603 );
607 public: double MagnitudeOfVector2
608 (
609 const NXOpen::Vector2d & vector
610 );
614 public: bool Vector2NotEqual
615 (
616 const NXOpen::Vector2d & vector ,
617 const NXOpen::Vector2d & originalVector
618 );
623 (
624 const NXOpen::Vector2d & vector ,
625 double tolerance
626 );
631 (
632 const NXOpen::Vector2d & vector
633 );
638 (
639 const NXOpen::Vector2d & vector
640 );
645 (
646 const NXOpen::Vector2d & vector ,
647 std::vector<double> & array
648 );
652 public: double Vector2FindAngle
653 (
654 const NXOpen::Vector2d & vector1 ,
655 const NXOpen::Vector2d & vector2
656 );
660 public: bool Vector2IsParallel
661 (
662 const NXOpen::Vector2d & vector1 ,
663 const NXOpen::Vector2d & vector2 ,
664 double tolerance
665 );
670 (
671 const NXOpen::Vector2d & vector1 ,
672 const NXOpen::Vector2d & vector2 ,
673 double tolerance
674 );
679 (
680 const NXOpen::Vector2d & vector
681 );
686 (
687 const NXOpen::Vector2d & componentVector1 ,
688 const NXOpen::Vector2d & componentVector2 ,
689 const NXOpen::Vector2d & componentVector3 ,
690 double tolerance ,
691 double scalar1 ,
692 double scalar2
693 );
698 (
699 const NXOpen::Vector2d & vector ,
700 double angle
701 );
706 (
707 double value1 ,
708 double value2 ,
709 double value3 ,
710 double weight
711 );
718 (
719 const std::vector<double> & array
720 );
727 (
728 double value1 ,
729 double value2 ,
730 double value3 ,
731 double weight
732 );
739 (
740 const NXOpen::Point4d & point ,
741 int i
742 );
748 public: bool Point4IsEqual
749 (
750 const NXOpen::Point4d & point ,
751 const NXOpen::Point4d & originalPoint
752 );
759 (
760 const NXOpen::Point4d & point ,
761 const NXOpen::Point4d & originalPoint ,
762 double tolerance
763 );
769 public: bool Point4NotEqual
770 (
771 const NXOpen::Point4d & point ,
772 const NXOpen::Point4d & originalPoint
773 );
780 (
781 const NXOpen::Point4d & point
782 );
788 (
789 const NXOpen::Point4d & point ,
790 std::vector<double> & array
791 );
797 public: bool Matrix3IsEqual
798 (
799 const NXOpen::Matrix3x3 & matrix ,
800 const NXOpen::Matrix3x3 & originalMatrix
801 );
808 (
809 const NXOpen::Matrix3x3 & matrix ,
810 const NXOpen::Matrix3x3 & originalMatrix ,
811 double tolerance
812 );
818 public: bool Matrix3NotEqual
819 (
820 const NXOpen::Matrix3x3 & matrix ,
821 const NXOpen::Matrix3x3 & originalMatrix
822 );
829 (
830 const NXOpen::Vector3d & vectorX ,
831 const NXOpen::Vector3d & vectorY ,
832 const NXOpen::Vector3d & vectorZ
833 );
840 (
841 const std::vector<double> & array
842 );
847 (
848 double angle ,
849 const NXOpen::Vector3d & vector
850 );
855 (
856 double roll ,
857 double pitch ,
858 double yaw
859 );
864 (
865 const NXOpen::Vector3d & vector
866 );
871 (
872 const NXOpen::Vector3d & vectorX ,
873 const NXOpen::Vector3d & vectorY
874 );
879 (
880 const NXString & direction ,
881 const NXOpen::Matrix3x3 & matrix
882 );
887 (
888 const char * direction ,
889 const NXOpen::Matrix3x3 & matrix
890 );
895 (
896 const NXOpen::Matrix3x3 & matrix1 ,
897 const NXOpen::Matrix3x3 & matrix2
898 );
902 public: void AskRollPitchYaw
903 (
904 const NXOpen::Matrix3x3 & matrix ,
905 std::vector<double> & array
906 );
911 (
912 const NXOpen::Matrix3x3 & matrix
913 );
918 (
919 const NXOpen::Matrix3x3 & matrix ,
920 std::vector<double> & array
921 );
925 public: double DeterminantOfMatrix3
926 (
927 const NXOpen::Matrix3x3 & matrix
928 );
933 (
934 const NXOpen::Matrix3x3 & matrix
935 );
936 }; //lint !e1712 default constructor not defined for class
937}
938#ifdef _MSC_VER
939#pragma warning(pop)
940#endif
941#ifdef __GNUC__
942#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
943#pragma GCC diagnostic warning "-Wdeprecated-declarations"
944#endif
945#endif
946#undef EXPORTLIBRARY