]> OCCT Git - occt.git/commit
Coding - Optimize gp_Vec, gp_Vec2d, gp_XY, and gp_XYZ classes (#578)
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Thu, 26 Jun 2025 08:37:35 +0000 (09:37 +0100)
committerGitHub <noreply@github.com>
Thu, 26 Jun 2025 08:37:35 +0000 (09:37 +0100)
commit6b69f59803071ebdd1c365088e30f77ed60ae21f
tree4a25b47844dac75f8197f8a17bccb05b8cfd49d6
parented7a447177c18a63db93d2bcbde7b7b6f1f26205
Coding - Optimize gp_Vec, gp_Vec2d, gp_XY, and gp_XYZ classes (#578)

Renamed parameters and improved consistency across methods.
Simplified mathematical computations and replaced indirect API calls with direct data member access where performance‐critical.
Updated and optimized matrix operations including inversion, transposition, and power calculations.
12 files changed:
src/FoundationClasses/TKMath/gp/FILES.cmake
src/FoundationClasses/TKMath/gp/gp_Mat.cxx
src/FoundationClasses/TKMath/gp/gp_Mat.hxx
src/FoundationClasses/TKMath/gp/gp_Pnt.hxx
src/FoundationClasses/TKMath/gp/gp_Vec.cxx
src/FoundationClasses/TKMath/gp/gp_Vec.hxx
src/FoundationClasses/TKMath/gp/gp_Vec2d.cxx
src/FoundationClasses/TKMath/gp/gp_Vec2d.hxx
src/FoundationClasses/TKMath/gp/gp_XY.cxx [deleted file]
src/FoundationClasses/TKMath/gp/gp_XY.hxx
src/FoundationClasses/TKMath/gp/gp_XYZ.cxx
src/FoundationClasses/TKMath/gp/gp_XYZ.hxx