From 5c21b67a04bd847d7f04042a0ddc0bc4629d20e7 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Mon, 24 May 2010 16:17:06 +0200 Subject: Added matrix-matrix and matrix-constant multiplication. --- engine/matrix.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engine/matrix.h') diff --git a/engine/matrix.h b/engine/matrix.h index b6e4e3c..8be483a 100644 --- a/engine/matrix.h +++ b/engine/matrix.h @@ -14,6 +14,10 @@ class Matrix2 : Matrix<2, 2> { Matrix2(); Matrix2(float m00, float m01, float m10, float m11); + Matrix2 operator*(const Matrix2& mat); + + Matrix2 operator*(float f); + Vector2 operator*(const Vector2& v); }; -- cgit v1.2.3