Switch from Nz prefix to namespace Nz
What a huge commit Former-commit-id: 38ac5eebf70adc1180f571f6006192d28fb99897
This commit is contained in:
@@ -7,8 +7,8 @@ SCENARIO("Vector3", "[MATH][VECTOR3]")
|
||||
{
|
||||
GIVEN("Two same unit vector")
|
||||
{
|
||||
NzVector3f firstUnit(1.f, 1.f, 1.f);
|
||||
NzVector3f secondUnit(NzVector3i(NzVector4i(1, 1, 1, 5)));
|
||||
Nz::Vector3f firstUnit(1.f, 1.f, 1.f);
|
||||
Nz::Vector3f secondUnit(Nz::Vector3i(Nz::Vector4i(1, 1, 1, 5)));
|
||||
|
||||
WHEN("We compare them")
|
||||
{
|
||||
@@ -20,7 +20,7 @@ SCENARIO("Vector3", "[MATH][VECTOR3]")
|
||||
|
||||
WHEN("We test the dot product")
|
||||
{
|
||||
NzVector3f tmp(-1.f, 0.f, 1.f);
|
||||
Nz::Vector3f tmp(-1.f, 0.f, 1.f);
|
||||
|
||||
THEN("These results are expected")
|
||||
{
|
||||
@@ -34,14 +34,14 @@ SCENARIO("Vector3", "[MATH][VECTOR3]")
|
||||
{
|
||||
THEN("These results are expected")
|
||||
{
|
||||
REQUIRE(NzVector3f::CrossProduct(NzVector3f::UnitX(), NzVector3f::UnitY()) == NzVector3f::UnitZ());
|
||||
REQUIRE(NzVector3f::CrossProduct(NzVector3f(1.f, 2.f, 3.f), NzVector3f(3.f, 2.f, 1.f)) == NzVector3f(-4.f, 8.f, -4.f));
|
||||
REQUIRE(Nz::Vector3f::CrossProduct(Nz::Vector3f::UnitX(), Nz::Vector3f::UnitY()) == Nz::Vector3f::UnitZ());
|
||||
REQUIRE(Nz::Vector3f::CrossProduct(Nz::Vector3f(1.f, 2.f, 3.f), Nz::Vector3f(3.f, 2.f, 1.f)) == Nz::Vector3f(-4.f, 8.f, -4.f));
|
||||
}
|
||||
}
|
||||
|
||||
WHEN("We ask for distance")
|
||||
{
|
||||
NzVector3f tmp(-1.f, -5.f, -8.f);
|
||||
Nz::Vector3f tmp(-1.f, -5.f, -8.f);
|
||||
|
||||
THEN("These are expected")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user