refactor using pimpl and fix test
This commit is contained in:
@@ -52,7 +52,7 @@ int main()
|
||||
|
||||
// Test 1: Basic identity transformation and cylinder parameters
|
||||
{
|
||||
Cylinder cyl(2.0, 10.0);
|
||||
Cylinder cyl(2.0, 10.0, 2);
|
||||
std::cout << "Cyl R=" << cyl.GetRadius() << " H=" << cyl.GetHeight() << std::endl;
|
||||
std::cout << "Cyl World Matrix:\n" << cyl.GetWorldMatrix() << std::endl;
|
||||
|
||||
@@ -82,7 +82,7 @@ int main()
|
||||
|
||||
// Test 2: Translation
|
||||
{
|
||||
Cylinder cyl(1.0, 2.0);
|
||||
Cylinder cyl(1.0, 2.0, 2);
|
||||
cyl.SetPosition(Vector3f(10, 20, 30));
|
||||
|
||||
// Local base origin (0, 0, 0) -> World (10, 20, 30)
|
||||
@@ -96,7 +96,7 @@ int main()
|
||||
|
||||
// Test 3: Rotation and complex mapping
|
||||
{
|
||||
Cylinder cyl(5.0, 20.0);
|
||||
Cylinder cyl(5.0, 20.0, 2);
|
||||
cyl.SetPosition(Vector3f(1.0, 2.0, 3.0));
|
||||
// Rotate 90 degrees around X: Local Y becomes World Z, Local Z becomes World -Y
|
||||
cyl.Rotate(M_PI/2.0, Vector3f(1, 0, 0));
|
||||
|
||||
Reference in New Issue
Block a user