worked on 2D/3D raytracing
adjusted BVH improved 2D/3D BVH new bounding volumes new test cases renamed some test-cases for grouping reasons made GPC header-only using slight adjustments
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "../../geo/Angle.h"
|
||||
|
||||
TEST(Angle, dir) {
|
||||
TEST(Geo_Angle, dir) {
|
||||
|
||||
// angle -> pointer -> angle
|
||||
ASSERT_NEAR(0, Angle::getRAD_2PI(Angle::getPointer(0)), 0.0001);
|
||||
@@ -14,7 +14,7 @@ TEST(Angle, dir) {
|
||||
|
||||
}
|
||||
|
||||
TEST(Angle, safe) {
|
||||
TEST(Geo_Angle, safe) {
|
||||
|
||||
ASSERT_EQ(0, (int)std::round(Angle::radToDeg(Angle::makeSafe_2PI(Angle::degToRad(0)))));
|
||||
ASSERT_EQ(0, (int)std::round(Angle::radToDeg(Angle::makeSafe_2PI(Angle::degToRad(360)))));
|
||||
@@ -35,7 +35,7 @@ TEST(Angle, safe) {
|
||||
|
||||
}
|
||||
|
||||
TEST(Angle, calc) {
|
||||
TEST(Geo_Angle, calc) {
|
||||
|
||||
ASSERT_EQ(0, (int)Angle::getDEG_360(0,0, +1,0)); // to the right
|
||||
ASSERT_EQ(90, (int)Angle::getDEG_360(0,0, 0,+1)); // upwards
|
||||
@@ -49,7 +49,7 @@ TEST(Angle, calc) {
|
||||
|
||||
}
|
||||
|
||||
TEST(Angle, signedDiff) {
|
||||
TEST(Geo_Angle, signedDiff) {
|
||||
|
||||
const float d = 0.00001f;
|
||||
ASSERT_NEAR(+M_PI/2, Angle::getSignedDiffRAD_2PI(0, M_PI/2), d); // CCW
|
||||
@@ -62,7 +62,7 @@ TEST(Angle, signedDiff) {
|
||||
|
||||
}
|
||||
|
||||
TEST(Angle, diff) {
|
||||
TEST(Geo_Angle, diff) {
|
||||
|
||||
const float r = Angle::getRAD_2PI(0,0, +1,0); // to the right
|
||||
const float u = Angle::getRAD_2PI(0,0, 0,+1); // upwards
|
||||
|
||||
Reference in New Issue
Block a user