summaryrefslogtreecommitdiffstats
path: root/dev/a2-carsoccer/ball.h
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2021-09-27 21:44:53 -0500
committerMatt Strapp <matt@mattstrapp.net>2021-09-27 21:44:53 -0500
commitb38e870d6be22a377bf7b0fb5048801886ebaa77 (patch)
tree18e021a36e2f939892eb4895269f420274a341df /dev/a2-carsoccer/ball.h
parentPushed feedback file submission-p1 (diff)
downloadcsci4611-b38e870d6be22a377bf7b0fb5048801886ebaa77.tar
csci4611-b38e870d6be22a377bf7b0fb5048801886ebaa77.tar.gz
csci4611-b38e870d6be22a377bf7b0fb5048801886ebaa77.tar.bz2
csci4611-b38e870d6be22a377bf7b0fb5048801886ebaa77.tar.lz
csci4611-b38e870d6be22a377bf7b0fb5048801886ebaa77.tar.xz
csci4611-b38e870d6be22a377bf7b0fb5048801886ebaa77.tar.zst
csci4611-b38e870d6be22a377bf7b0fb5048801886ebaa77.zip
Diffstat (limited to 'dev/a2-carsoccer/ball.h')
-rw-r--r--dev/a2-carsoccer/ball.h78
1 files changed, 39 insertions, 39 deletions
diff --git a/dev/a2-carsoccer/ball.h b/dev/a2-carsoccer/ball.h
index 0fa107e..a43eb31 100644
--- a/dev/a2-carsoccer/ball.h
+++ b/dev/a2-carsoccer/ball.h
@@ -1,39 +1,39 @@
-/** CSci-4611 Assignment 2: Car Soccer
- */
-
-#ifndef BALL_H_
-#define BALL_H_
-
-#include <mingfx.h>
-using namespace mingfx;
-
-/// Small class representing the ball. Feel free to add additional member variables and functions if you wish.
-class Ball {
-public:
-
- Ball();
- virtual ~Ball();
-
- // The same radius is used to draw the ball and to calculate physics for the ball
- float radius();
-
- // Current 3D position
- Point3 position();
- void set_position(const Point3 &p);
-
- // Current 3D velocity
- Vector3 velocity();
- void set_velocity(const Vector3 &v);
-
- // Resets the ball's position and velocity to initial values.
- void Reset();
-
- void Draw(QuickShapes quickShapes, Matrix4 modelMatrix, Matrix4 viewMatrix, Matrix4 projMatrix);
-
-private:
- Point3 position_;
- Vector3 velocity_;
- float radius_;
-};
-
-#endif
+/** CSci-4611 Assignment 2: Car Soccer
+ */
+
+#ifndef BALL_H_
+#define BALL_H_
+
+#include <mingfx.h>
+using namespace mingfx;
+
+/// Small class representing the ball. Feel free to add additional member variables and functions if you wish.
+class Ball {
+public:
+
+ Ball();
+ virtual ~Ball();
+
+ // The same radius is used to draw the ball and to calculate physics for the ball
+ float radius();
+
+ // Current 3D position
+ Point3 position();
+ void set_position(const Point3 &p);
+
+ // Current 3D velocity
+ Vector3 velocity();
+ void set_velocity(const Vector3 &v);
+
+ // Resets the ball's position and velocity to initial values.
+ void Reset();
+
+ void Draw(QuickShapes quickShapes, Matrix4 modelMatrix, Matrix4 viewMatrix, Matrix4 projMatrix);
+
+private:
+ Point3 position_;
+ Vector3 velocity_;
+ float radius_;
+};
+
+#endif