Skip to content

Commit

Permalink
math fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNumbat committed Jan 2, 2024
1 parent 250dd6b commit f70a1dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpp/vmath.h
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ struct Mat4 {
Vec4 columns[4];
};

explicit Mat4()
Mat4()
: columns{Vec4{1.0f, 0.0f, 0.0f, 0.0f}, Vec4{0.0f, 1.0f, 0.0f, 0.0f},
Vec4{0.0f, 0.0f, 1.0f, 0.0f}, Vec4{0.0f, 0.0f, 0.0f, 1.0f}} {
}
Expand Down Expand Up @@ -633,7 +633,7 @@ struct Quat : detail::Vect_Base<f32, 4> {

using Base = detail::Vect_Base<f32, 4>;

explicit Quat() : Base{0.0f, 0.0f, 0.0f, 1.0f} {
Quat() : Base{0.0f, 0.0f, 0.0f, 1.0f} {
}
explicit Quat(f32 x, f32 y, f32 z, f32 w) : Base{x, y, z, w} {
}
Expand Down Expand Up @@ -762,7 +762,7 @@ struct Quat : detail::Vect_Base<f32, 4> {

struct BBox {

explicit BBox() : min(Limits<f32>::max()), max(Limits<f32>::min()) {
BBox() : min(Limits<f32>::max()), max(Limits<f32>::min()) {
}
explicit BBox(Vec3 min, Vec3 max) : min(min), max(max) {
}
Expand Down

0 comments on commit f70a1dd

Please sign in to comment.