Skip to content

Commit

Permalink
fix(vqm): use scalar type where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrechette committed Nov 14, 2024
1 parent 94193e9 commit 275b2d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions includes/rtm/experimental/vqmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ namespace rtm
vqmd result;
result.rotation = rotation;
result.translation = translation;
result.x_axis = vector_set_x(zero, vector_get_x(scale));
result.y_axis = vector_set_y(zero, vector_get_y(scale));
result.z_axis = vector_set_z(zero, vector_get_z(scale));
result.x_axis = vector_set_x(zero, vector_get_x_as_scalar(scale));
result.y_axis = vector_set_y(zero, vector_get_y_as_scalar(scale));
result.z_axis = vector_set_z(zero, vector_get_z_as_scalar(scale));

return result;
}
Expand Down Expand Up @@ -176,9 +176,9 @@ namespace rtm
RTM_DISABLE_SECURITY_COOKIE_CHECK RTM_FORCE_INLINE vqmd RTM_SIMD_CALL vqm_set_scale(const vqmd& qvm, vector4d_arg0 scale) RTM_NO_EXCEPT
{
vqmd result = qvm;
result.x_axis = vector_set_x(qvm.x_axis, vector_get_x(scale));
result.y_axis = vector_set_y(qvm.y_axis, vector_get_y(scale));
result.z_axis = vector_set_z(qvm.z_axis, vector_get_z(scale));
result.x_axis = vector_set_x(qvm.x_axis, vector_get_x_as_scalar(scale));
result.y_axis = vector_set_y(qvm.y_axis, vector_get_y_as_scalar(scale));
result.z_axis = vector_set_z(qvm.z_axis, vector_get_z_as_scalar(scale));
return result;
}

Expand Down
12 changes: 6 additions & 6 deletions includes/rtm/experimental/vqmf.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ namespace rtm
vqmf result;
result.rotation = rotation;
result.translation = translation;
result.x_axis = vector_set_x(zero, vector_get_x(scale));
result.y_axis = vector_set_y(zero, vector_get_y(scale));
result.z_axis = vector_set_z(zero, vector_get_z(scale));
result.x_axis = vector_set_x(zero, vector_get_x_as_scalar(scale));
result.y_axis = vector_set_y(zero, vector_get_y_as_scalar(scale));
result.z_axis = vector_set_z(zero, vector_get_z_as_scalar(scale));

return result;
}
Expand Down Expand Up @@ -176,9 +176,9 @@ namespace rtm
RTM_DISABLE_SECURITY_COOKIE_CHECK RTM_FORCE_INLINE vqmf RTM_SIMD_CALL vqm_set_scale(const vqmf& qvm, vector4f_arg0 scale) RTM_NO_EXCEPT
{
vqmf result = qvm;
result.x_axis = vector_set_x(qvm.x_axis, vector_get_x(scale));
result.y_axis = vector_set_y(qvm.y_axis, vector_get_y(scale));
result.z_axis = vector_set_z(qvm.z_axis, vector_get_z(scale));
result.x_axis = vector_set_x(qvm.x_axis, vector_get_x_as_scalar(scale));
result.y_axis = vector_set_y(qvm.y_axis, vector_get_y_as_scalar(scale));
result.z_axis = vector_set_z(qvm.z_axis, vector_get_z_as_scalar(scale));
return result;
}

Expand Down

0 comments on commit 275b2d0

Please sign in to comment.