Skip to content

Commit

Permalink
Merge pull request #97208 from kleonc/transform3d_aabb_multiplication…
Browse files Browse the repository at this point in the history
…_fix_csharp

Fix C# `operator *(Transform3D, Aabb)`
  • Loading branch information
akien-mga committed Sep 20, 2024
2 parents 2834342 + 3bfadef commit 5070db2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions core/math/basis.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ struct [[nodiscard]] Basis {
Vector3(0, 0, 1)
};

_FORCE_INLINE_ const Vector3 &operator[](int p_axis) const {
return rows[p_axis];
_FORCE_INLINE_ const Vector3 &operator[](int p_row) const {
return rows[p_row];
}
_FORCE_INLINE_ Vector3 &operator[](int p_axis) {
return rows[p_axis];
_FORCE_INLINE_ Vector3 &operator[](int p_row) {
return rows[p_row];
}

void invert();
Expand Down
4 changes: 2 additions & 2 deletions modules/mono/glue/GodotSharp/GodotSharp/Core/Transform3D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,8 @@ public Transform3D(Projection projection)
{
for (int j = 0; j < 3; j++)
{
real_t e = transform.Basis[i][j] * min[j];
real_t f = transform.Basis[i][j] * max[j];
real_t e = transform.Basis[j][i] * min[j];
real_t f = transform.Basis[j][i] * max[j];
if (e < f)
{
tmin[i] += e;
Expand Down

0 comments on commit 5070db2

Please sign in to comment.