Skip to content

Commit

Permalink
Remove namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Sep 27, 2024
1 parent 277b656 commit d2f3e4f
Showing 1 changed file with 15 additions and 30 deletions.
45 changes: 15 additions & 30 deletions CesiumGeometry/test/TestTransforms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,65 +52,50 @@ TEST_CASE("Gets up axis transform") {
const glm::dmat4 Identity(1.0);

SECTION("Gets X-up to X-up transform") {
CHECK(
Transforms::getUpAxisTransform(
CesiumGeometry::Axis::X,
CesiumGeometry::Axis::X) == Identity);
CHECK(Transforms::getUpAxisTransform(Axis::X, Axis::X) == Identity);
}

SECTION("Gets X-up to Y-up transform") {
CHECK(
Transforms::getUpAxisTransform(
CesiumGeometry::Axis::X,
CesiumGeometry::Axis::Y) == Transforms::X_UP_TO_Y_UP);
Transforms::getUpAxisTransform(Axis::X, Axis::Y) ==
Transforms::X_UP_TO_Y_UP);
}

SECTION("Gets X-up to Z-up transform") {
CHECK(
Transforms::getUpAxisTransform(
CesiumGeometry::Axis::X,
CesiumGeometry::Axis::Z) == Transforms::X_UP_TO_Z_UP);
Transforms::getUpAxisTransform(Axis::X, Axis::Z) ==
Transforms::X_UP_TO_Z_UP);
}

SECTION("Gets Y-up to X-up transform") {
CHECK(
Transforms::getUpAxisTransform(
CesiumGeometry::Axis::Y,
CesiumGeometry::Axis::X) == Transforms::Y_UP_TO_X_UP);
Transforms::getUpAxisTransform(Axis::Y, Axis::X) ==
Transforms::Y_UP_TO_X_UP);
}

SECTION("Gets Y-up to Y-up transform") {
CHECK(
Transforms::getUpAxisTransform(
CesiumGeometry::Axis::Y,
CesiumGeometry::Axis::Y) == Identity);
CHECK(Transforms::getUpAxisTransform(Axis::Y, Axis::Y) == Identity);
}

SECTION("Gets Y-up to Z-up transform") {
CHECK(
Transforms::getUpAxisTransform(
CesiumGeometry::Axis::Y,
CesiumGeometry::Axis::Z) == Transforms::Y_UP_TO_Z_UP);
Transforms::getUpAxisTransform(Axis::Y, Axis::Z) ==
Transforms::Y_UP_TO_Z_UP);
}

SECTION("Gets Z-up to X-up transform") {
CHECK(
Transforms::getUpAxisTransform(
CesiumGeometry::Axis::Z,
CesiumGeometry::Axis::X) == Transforms::Z_UP_TO_X_UP);
Transforms::getUpAxisTransform(Axis::Z, Axis::X) ==
Transforms::Z_UP_TO_X_UP);
}

SECTION("Gets Z-up to Y-up transform") {
CHECK(
Transforms::getUpAxisTransform(
CesiumGeometry::Axis::Z,
CesiumGeometry::Axis::Y) == Transforms::Z_UP_TO_Y_UP);
Transforms::getUpAxisTransform(Axis::Z, Axis::Y) ==
Transforms::Z_UP_TO_Y_UP);
}

SECTION("Gets Z-up to Z-up transform") {
CHECK(
Transforms::getUpAxisTransform(
CesiumGeometry::Axis::Z,
CesiumGeometry::Axis::Z) == Identity);
CHECK(Transforms::getUpAxisTransform(Axis::Z, Axis::Z) == Identity);
}
}

0 comments on commit d2f3e4f

Please sign in to comment.