30 T1.PrintStylized(
"T: ");
32 std::cout<<
"area:"<<T1.GetArea()<<
"\n";
34 std::cout<<
"T1.IsInside(0.5,0.5):"<<T1.IsInside(0.5,0.5)<<
"\n";
35 std::cout<<
"T1.IsInside(0.0,1.0):"<<T1.IsInside(0.0,1.0)<<
"\n";
36 std::cout<<
"T1.IsInside(0.0,2.0):"<<T1.IsInside(0.0,2.0)<<
"\n";
37 std::cout<<
"T1.IsInside(2.0,2.0):"<<T1.IsInside(2.0,2.0)<<
"\n";
39 std::cout<<
"T1.IsInside(Pds::Point2D(0.5,0.5)):"<<T1.IsInside(
Pds::Point2D(0.5,0.5))<<
"\n";
40 std::cout<<
"T1.IsInside(Pds::Point2D(0.0,1.0)):"<<T1.IsInside(
Pds::Point2D(0.0,1.0))<<
"\n";
41 std::cout<<
"T1.IsInside(Pds::Point2D(0.0,2.0)):"<<T1.IsInside(
Pds::Point2D(0.0,2.0))<<
"\n";
42 std::cout<<
"T1.IsInside(Pds::Point2D(2.0,2.0)):"<<T1.IsInside(
Pds::Point2D(2.0,2.0))<<
"\n";
44 std::cout<<
"T1.Evaluate(0.5,0.5):"<<T1.Evaluate(0.5,0.5)<<
"\n";
45 std::cout<<
"T1.Evaluate(0.0,1.0):"<<T1.Evaluate(0.0,1.0)<<
"\n";
46 std::cout<<
"T1.Evaluate(0.0,2.0):"<<T1.Evaluate(0.0,2.0)<<
"\n";
47 std::cout<<
"T1.Evaluate(2.0,2.0):"<<T1.Evaluate(2.0,2.0)<<
"\n";
49 std::cout<<
"T1.Evaluate(Pds::Point2D(0.5,0.5)):"<<T1.Evaluate(
Pds::Point2D(0.5,0.5))<<
"\n";
50 std::cout<<
"T1.Evaluate(Pds::Point2D(0.0,1.0)):"<<T1.Evaluate(
Pds::Point2D(0.0,1.0))<<
"\n";
51 std::cout<<
"T1.Evaluate(Pds::Point2D(0.0,2.0)):"<<T1.Evaluate(
Pds::Point2D(0.0,2.0))<<
"\n";
52 std::cout<<
"T1.Evaluate(Pds::Point2D(2.0,2.0)):"<<T1.Evaluate(
Pds::Point2D(2.0,2.0))<<
"\n";
La clase tipo Pds::Point2D . Esta clase genera un objeto con dos parametros X y Y....
La clase tipo Pds::Triangle . Esta clase genera un objeto con dos parĂ¡metros theta y rho....