Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace glm with our own math classes
- Loading branch information
1 parent
1fd44a9
commit 861e294
Showing
67 changed files
with
2,854 additions
and
890 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 was deleted.
Oops, something went wrong.
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,26 @@ | ||
// Copyright 2019 the donut authors. See AUTHORS.md | ||
|
||
#pragma once | ||
|
||
#include "Core/Math/Vector3.h" | ||
|
||
namespace Donut | ||
{ | ||
|
||
class BoundingBox | ||
{ | ||
public: | ||
BoundingBox(): | ||
_min(Vector3(0.0f)), _max(Vector3(0.0f)) {} | ||
BoundingBox(const Vector3& min, const Vector3& max): | ||
_min(min), _max(max) {} | ||
|
||
Vector3 GetMin() const { return _min; } | ||
Vector3 GetMax() const { return _max; } | ||
|
||
private: | ||
Vector3 _min; | ||
Vector3 _max; | ||
}; | ||
|
||
} // namespace Donut |
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,15 @@ | ||
// Copyright 2019 the donut authors. See AUTHORS.md | ||
|
||
#pragma once | ||
|
||
namespace Donut | ||
{ | ||
struct Matrix3x3; | ||
struct Matrix4x4; | ||
struct Quaternion; | ||
struct Vector2; | ||
struct Vector2Int; | ||
struct Vector3; | ||
struct Vector3Int; | ||
struct Vector4; | ||
} // namespace Donut |
Oops, something went wrong.