Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Doodler/Doodler.h
- Revision:
- 34:a9b14a4ccd46
- Parent:
- 32:83f410c433c2
diff -r de130e274391 -r a9b14a4ccd46 Doodler/Doodler.h
--- a/Doodler/Doodler.h Thu May 09 11:39:59 2019 +0000
+++ b/Doodler/Doodler.h Thu May 09 14:07:09 2019 +0000
@@ -84,6 +84,18 @@
void check_velocity();
/**
+ @brief Returns the current doodler's position in the x-axis
+ @details Gets the current value in the doodler's class for the doodler's position in the x-axis
+ */
+ float get_position_x();
+
+ /**
+ @brief Returns the current doodler's position in the y-axis
+ @details Gets the current value in the doodler's class for the doodler's position in the y-axis
+ */
+ float get_position_y();
+
+ /**
@brief Returns the current doodler's velocity in the x-axis
@details Gets the current value in the doodler's class for the doodler's velocity in the x-axis
*/
@@ -97,16 +109,13 @@
double get_velocity_y();
/**
- @brief Returns the current doodler's position in the x-axis
- @details Gets the current value in the doodler's class for the doodler's position in the x-axis
+ @brief Sets the doodler's position in the Doodler's class to equal the inputed parameters
+ @param float pos_x
+ @param float pos_y
+ @details The function sets the doodler's position in the doodler's class by making the current
+ position equal the inputed parameters
*/
- float get_position_x();
-
- /**
- @brief Returns the current doodler's position in the y-axis
- @details Gets the current value in the doodler's class for the doodler's position in the y-axis
- */
- float get_position_y();
+ void set_position(float pos_x, float pos_y);
/**
@brief Sets the doodler's velocity in the Doodler's class to equal the inputed parameters
@@ -117,15 +126,6 @@
*/
void set_velocity(float vel_x, double vel_y);
- /**
- @brief Sets the doodler's position in the Doodler's class to equal the inputed parameters
- @param float pos_x
- @param float pos_y
- @details The function sets the doodler's position in the doodler's class by making the current
- position equal the inputed parameters
- */
- void set_position(float pos_x, float pos_y);
-
private:
float _position_x;
float _position_y;