cangine
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
triangle.hpp File Reference
#include <array>
#include "../util/color.hpp"
#include "../types/vector3.hpp"
#include "vertex.hpp"
#include "rectangle.hpp"
Include dependency graph for triangle.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cangine::Triangle
 A triangle defined by three vertices. More...
 

Namespaces

namespace  cangine
 

Functions

Triangle cangine::makeTriangle (const Vector3 &a, const Vector3 &b, const Vector3 &c, const Color &color) noexcept
 Builds a triangle from three positions sharing a single color.
 
std::array< Triangle, 2 > cangine::rectToTriangle (const Rectangle &r) noexcept
 Splits a rectangle into the two triangles that cover it.