12345678910 |
- #include "client/rendering/Triangle.h"
- Triangle::Triangle() {
- }
- Triangle::Triangle(const Vertex& a, const Vertex& b, const Vertex& c) : a(a), b(b), c(c) {
- normalA = static_cast<Vector3>(b.position - a.position).cross(c.position - a.position);
- normalB = normalA;
- normalC = normalA;
- }
|