Vector2 lh::transform(const Matrix3& matrix, Vector2& vector, float z) { return Vector2( matrix.a() * vector.x + matrix.d() * vector.y + matrix.g() * z, matrix.b() * vector.x + matrix.e() * vector.y + matrix.h() * z); }
Vector2 rh::transform(const Matrix3& matrix, Vector2& vector, float z) { return Vector2( vector.x * matrix.a() + vector.y * matrix.b() + z * matrix.c(), vector.x * matrix.d() + vector.y * matrix.e() + z * matrix.f()); }