Quelcode des Partikelsystems Boden
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

attractor.cpp 541B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #include "attractor.h"
  2. Attractor::Attractor()
  3. {
  4. x = 0;
  5. y = 0;
  6. }
  7. //--------------------------------------------------------------------------------------
  8. Attractor::~Attractor()
  9. {
  10. }
  11. //--------------------------------------------------------------------------------------
  12. float Attractor::getY() {
  13. return y;
  14. }
  15. float Attractor::getX() {
  16. return x;
  17. }
  18. void Attractor::setX(float xNew) {
  19. x = xNew;
  20. }
  21. void Attractor::setY(float yNew) {
  22. y = yNew;
  23. }
  24. void Attractor::setup(float xSetup, float ySetup) {
  25. x = xSetup;
  26. y = ySetup;
  27. }