-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use enum to define axis in mirror_matrix
follow naming guidelines for parameters
- Loading branch information
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,11 @@ namespace gvk | |
/// extract the translation part out of a matrix | ||
extern glm::vec3 get_translation_from_matrix(const glm::mat4& m); | ||
|
||
glm::mat4 cancel_translation_from_matrix(const glm::mat4& m); | ||
glm::mat4 cancel_translation_from_matrix(const glm::mat4& aMatrix); | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
glm::mat4 mirror_matrix(const glm::mat4& m, const glm::length_t axis = 0); | ||
enum principal_axis : uint32_t { x = 0u, y, z }; | ||
This comment has been minimized.
Sorry, something went wrong.
johannesugb
Member
|
||
|
||
glm::mat4 mirror_matrix(const glm::mat4& aMatrix, const glm::length_t aAxis = principal_axis::x); | ||
This comment has been minimized.
Sorry, something went wrong.
johannesugb
Member
|
||
|
||
/// <summary> | ||
/// Solve a system of equations with 3 unknowns. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please add
/** */
style comments and make sure to briefly describe the function and all its@parameter
s as well as its@return
value!