17 lines
258 B
C++
17 lines
258 B
C++
#pragma once
|
|
|
|
namespace J3ML::Geometry
|
|
{
|
|
class Triangle
|
|
{
|
|
public:
|
|
Vector3 V0;
|
|
Vector3 V1;
|
|
Vector3 V2;
|
|
|
|
bool Intersects(const AABB& aabb) const
|
|
{
|
|
return aabb.Intersects(*this);
|
|
}
|
|
};
|
|
} |