Skip to content

Commit

Permalink
Use Math::affine for Math::trs to avoid duplicated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Duttenheim committed Mar 18, 2024
1 parent b205c09 commit 39c1fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/foundation/math/mat4.h
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ translation(const vec3& t)
__forceinline mat4
trs(const vec3& position, const quat& rotation, const vec3& scale)
{
return Math::translation(position) * Math::rotationquat(rotation) * Math::scaling(scale);
return Math::affine(scale, rotation, position);
}

//------------------------------------------------------------------------------
Expand Down

0 comments on commit 39c1fb8

Please sign in to comment.