Leonetienne/Eule
Homemade math library, mainly targetted towards computer graphics
|
Go to the documentation of this file.
32 static constexpr std::size_t
BACK = 0;
33 static constexpr std::size_t
FRONT = 4;
34 static constexpr std::size_t
LEFT = 0;
35 static constexpr std::size_t
RIGHT = 2;
36 static constexpr std::size_t
BOTTOM = 0;
37 static constexpr std::size_t
TOP = 1;
40 enum class FACE_NORMALS : std::size_t;
43 void GenerateNormalsFromVertices();
46 double FaceDot(FACE_NORMALS face, const Vector3d& point) const;
48 std::array<Vector3d, 8> vertices;
52 enum class FACE_NORMALS : std::size_t
61 std::array<Vector3d, 6> faceNormals;
static constexpr std::size_t RIGHT
Abstract class of a collider domain.
static constexpr std::size_t BACK
static constexpr std::size_t FRONT
static constexpr std::size_t BOTTOM
void operator=(const TrapazoidalPrismCollider &other)
static constexpr std::size_t LEFT
void SetVertex(std::size_t index, const Vector3d value)
Will set the value of a specific vertex.
bool Contains(const Vector3d &point) const override
Tests, if this Collider contains a point.
A collider describing a trapazoidal prism.
TrapazoidalPrismCollider()
const Vector3d & GetVertex(std::size_t index) const
Will return a specific vertex.
static constexpr std::size_t TOP