int
main(int, char *[])
{
EllipseType::ArrayType radius;
for (unsigned int i = 0; i < 3; ++i)
{
radius[i] = i;
}
myEllipse->SetRadiusInObjectSpace(radius);
myEllipse->Update();
myEllipse->SetRadiusInObjectSpace(2.0);
myEllipse->Update();
EllipseType::ArrayType myCurrentRadius =
myEllipse->GetRadiusInObjectSpace();
std::cout << "Current radius is " << myCurrentRadius << std::endl;
if (myEllipse->IsInsideInWorldSpace(insidePoint))
{
std::cout << "The point " << insidePoint;
std::cout << " is really inside the ellipse" << std::endl;
}
if (!myEllipse->IsInsideInWorldSpace(outsidePoint))
{
std::cout << "The point " << outsidePoint;
std::cout << " is really outside the ellipse" << std::endl;
}
if (myEllipse->IsEvaluableAtInWorldSpace(insidePoint))
{
std::cout << "The point " << insidePoint;
std::cout << " is evaluable at the point " << insidePoint << std::endl;
}
double value;
myEllipse->ValueAtInWorldSpace(insidePoint, value);
std::cout << "The value inside the ellipse is: " << value << std::endl;
const EllipseType::BoundingBoxType * boundingBox =
myEllipse->GetMyBoundingBoxInWorldSpace();
std::cout << "Bounding Box: " << boundingBox->GetBounds() << std::endl;
return EXIT_SUCCESS;
}