Skip to content

Commit

Permalink
[New] Added mat4_translation_v
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi688 committed Jun 30, 2024
1 parent 76a3053 commit e47902d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/hpml/affine_transformation.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ HPML_API mat4_t mat4_shear_zy(float angle);
* returns: mat4_t translation matrix having vec3(x, y, z) displacement
*/
HPML_API mat4_t mat4_translation(float x, float y, float z);
static HPML_FORCE_INLINE mat4_t mat4_translation_v(vec3_t disp_vector) { return mat4_translation(disp_vector.x, disp_vector.y, disp_vector.z); }

/*
* mat4_scale: Calculates a scale 4x4 matrix having the scale factors as x [in x dir], y [in y dir], and z [in z dir]
Expand Down

0 comments on commit e47902d

Please sign in to comment.