Skip to content

Commit 0041e29

Browse files
Updated Multiply() operator* to enable MatrixMultiplyValue()
1 parent 3cfa3db commit 0041e29

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

include/Matrix.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,12 @@ class Matrix : public ::Matrix {
120120

121121
[[nodiscard]] Matrix Multiply(const ::Matrix& right) const { return ::MatrixMultiply(*this, right); }
122122

123+
[[nodiscard]] Matrix Multiply(float value) const { return ::MatrixMultiplyValue(*this, value); }
124+
123125
Matrix operator*(const ::Matrix& matrix) { return ::MatrixMultiply(*this, matrix); }
124126

127+
Matrix operator*(float value) { return ::MatrixMultiplyValue(*this, value); }
128+
125129
static Matrix Frustum(double left, double right, double bottom, double top, double near, double far) {
126130
return ::MatrixFrustum(left, right, bottom, top, near, far);
127131
}

0 commit comments

Comments
 (0)