22 lines
346 B
C++
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;
|
|
};
|
|
|
|
|
|
} |