Files
j3ml/include/J3ML/Geometry/Triangle.h
2024-04-04 20:00:23 -04:00

22 lines
346 B
C++

#pragma once
#include <J3ML/Geometry/Common.h>
#include <J3ML/LinearAlgebra.h>
namespace J3ML::Geometry
{
class Triangle
{
public:
Vector3 V0;
Vector3 V1;
Vector3 V2;
bool Intersects(const AABB& aabb) const;
AABB BoundingAABB() const;
bool Contains(const Vector3&) const;
};
}