Skip to content

Commit 1a7deaa

Browse files
authored
Merge pull request #841 from MichaelBell/patch-fix-vector-transform
Initialize all matrix values
2 parents 9735402 + c812eec commit 1a7deaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/pico_vector/pretty_poly_types.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace pretty_poly {
1414

1515
// 3x3 matrix for coordinate transformations
1616
struct mat3_t {
17-
float v00, v10, v20, v01, v11, v21, v02, v12, v22 = 0.0f;
17+
float v00 = 0.0f, v10 = 0.0f, v20 = 0.0f, v01 = 0.0f, v11 = 0.0f, v21 = 0.0f, v02 = 0.0f, v12 = 0.0f, v22 = 0.0f;
1818
mat3_t() = default;
1919
mat3_t(const mat3_t &m) = default;
2020
inline mat3_t& operator*= (const mat3_t &m) {

0 commit comments

Comments
 (0)