Advertisement
GerexD

lissajou

Mar 29th, 2022
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. // Lissajou Curve
  2.  
  3. GLdouble lissajouCurve::u_min = -1.0;
  4. GLdouble lissajouCurve::u_max = +1.0;
  5.  
  6. DCoordinate3 lissajouCurve::d0(GLdouble u)
  7. {
  8. return DCoordinate3(sin(5.0*u + 1.5707), sin(4.0*u), u);
  9. }
  10.  
  11. DCoordinate3 lissajouCurve::d1(GLdouble u)
  12. {
  13. return DCoordinate3(5.0*cos(5.0*u + 1.5707), 4.0*cos(4.0*u), 1.0);
  14. }
  15.  
  16. DCoordinate3 lissajouCurve::d2(GLdouble u)
  17. {
  18. return DCoordinate3(-25.0*sin(5.0*u + 1.5707), -16.0*sin(4.0*u), 0.0);
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement