Daniele Bartolini 9 vuotta sitten
vanhempi
sitoutus
5bc9b67666
2 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. 4 0
      src/core/math/matrix3x3.h
  2. 4 0
      src/core/math/matrix4x4.h

+ 4 - 0
src/core/math/matrix3x3.h

@@ -59,6 +59,7 @@ inline Matrix3x3 matrix3x3(const Quaternion& r)
 	return m;
 }
 
+/// Adds the matrix @a a to @a b and returns the result.
 inline Matrix3x3& operator+=(Matrix3x3& a, const Matrix3x3& b)
 {
 	a.x += b.x;
@@ -67,6 +68,7 @@ inline Matrix3x3& operator+=(Matrix3x3& a, const Matrix3x3& b)
 	return a;
 }
 
+/// Subtracts the matrix @a b from @a a and returns the result.
 inline Matrix3x3& operator-=(Matrix3x3& a, const Matrix3x3& b)
 {
 	a.x -= b.x;
@@ -75,6 +77,7 @@ inline Matrix3x3& operator-=(Matrix3x3& a, const Matrix3x3& b)
 	return a;
 }
 
+/// Multiplies the matrix @a a by the scalar @a k and returns the result.
 inline Matrix3x3& operator*=(Matrix3x3& a, f32 k)
 {
 	a.x *= k;
@@ -83,6 +86,7 @@ inline Matrix3x3& operator*=(Matrix3x3& a, f32 k)
 	return a;
 }
 
+/// Multiplies the matrix @a a by @a b and returns the result. (i.e. transforms first by @a a then by @a b)
 inline Matrix3x3& operator*=(Matrix3x3& a, const Matrix3x3& b)
 {
 	Matrix3x3 tmp;

+ 4 - 0
src/core/math/matrix4x4.h

@@ -176,6 +176,7 @@ inline Matrix4x4 matrix4x4(const Matrix3x3& r)
 	return m;
 }
 
+/// Adds the matrix @a a to @a b and returns the result.
 inline Matrix4x4& operator+=(Matrix4x4& a, const Matrix4x4& b)
 {
 	a.x += b.x;
@@ -185,6 +186,7 @@ inline Matrix4x4& operator+=(Matrix4x4& a, const Matrix4x4& b)
 	return a;
 }
 
+/// Subtracts the matrix @a b from @a a and returns the result.
 inline Matrix4x4& operator-=(Matrix4x4& a, const Matrix4x4& b)
 {
 	a.x -= b.x;
@@ -194,6 +196,7 @@ inline Matrix4x4& operator-=(Matrix4x4& a, const Matrix4x4& b)
 	return a;
 }
 
+/// Multiplies the matrix @a a by the scalar @a k and returns the result.
 inline Matrix4x4& operator*=(Matrix4x4& a, f32 k)
 {
 	a.x *= k;
@@ -203,6 +206,7 @@ inline Matrix4x4& operator*=(Matrix4x4& a, f32 k)
 	return a;
 }
 
+/// Multiplies the matrix @a a by @a b and returns the result. (i.e. transforms first by @a a then by @a b)
 inline Matrix4x4& operator*=(Matrix4x4& a, const Matrix4x4& b)
 {
 	Matrix4x4 tmp;