-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove some includes that arent needed, and tidy up some general code HandleKeyboard in Camera.h now allows moving in multiple directions at the same time
- Loading branch information
Showing
14 changed files
with
262 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// Created by Conni Bilham on 10/07/2023. | ||
// | ||
|
||
#ifndef INC_2D_ENGINE_VECTOR_H | ||
#define INC_2D_ENGINE_VECTOR_H | ||
|
||
class Vector { | ||
|
||
public: | ||
double x, y, z; | ||
|
||
Vector(double x, double y, double z); | ||
Vector(double x, double y); | ||
Vector(double x); | ||
Vector(); | ||
|
||
template<typename T> | ||
Vector operator+(T &other); | ||
|
||
template<typename T> | ||
Vector operator-(T &other); | ||
|
||
template<typename T> | ||
Vector operator*(const T &other) const; | ||
|
||
template<typename T> | ||
Vector operator/(T &other); | ||
|
||
|
||
bool operator==(const Vector &other); | ||
bool operator!=(const Vector &other); | ||
|
||
double magnitude(); | ||
Vector normalize(); | ||
double dot(const Vector &other); | ||
Vector cross(const Vector &other); | ||
|
||
Vector direction(Vector &other); | ||
}; | ||
|
||
|
||
#endif//INC_2D_ENGINE_VECTOR_H |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.