Esempio n. 1
0
TYPED_TEST(Matrix3dTest, TestScale)
{
	Matrix3d<TypeParam> m = Matrix3d<TypeParam>::Identity();
	EXPECT_TRUE(m.isIdentity());

	const Matrix3d<TypeParam>& scaled = m.getScaled(2.0f);

	const Matrix3d<TypeParam> expected(
		2.0f, 0.0f, 0.0f,
		0.0f, 2.0f, 0.0f,
		0.0f, 0.0f, 2.0f
		);
	EXPECT_EQ(expected, scaled);

	m.scale(2.0f);

	EXPECT_EQ(expected, m);
}
Esempio n. 2
0
TYPED_TEST(Matrix3dTest, TestConstruct)
{
	Matrix3d<TypeParam> m;
	EXPECT_TRUE(m.isIdentity());
}