Home | Develop | Download | Contact
example_ellipse_state.cpp
1
19#include <cmath>
20#include <Pds/Ra>
21
22int main(void)
23{
24
25
26 Pds::Ellipse A(3,2,1,2,0);
27
28 std::cout<<"A.IsInside(1,2):"<<A.IsInside(1,2)<<"\n";
29 std::cout<<"A.IsInside(4,2):"<<A.IsInside(4,2)<<"\n";
30 std::cout<<"A.IsInside(5,2):"<<A.IsInside(5,2)<<"\n";
31
32 std::cout<<"A.Evaluate(1,2):"<<A.Evaluate(1,2)<<"\n";
33 std::cout<<"A.Evaluate(4,2):"<<A.Evaluate(4,2)<<"\n";
34 std::cout<<"A.Evaluate(5,2):"<<A.Evaluate(5,2)<<"\n";
35
36}
La clase tipo Pds::Ellipse . Esta clase genera un objeto con dos parĂ¡metros xc1, xc2 y a....
Definition: Ellipse.hpp:57

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed