added trace line

This commit is contained in:
2024-11-14 06:37:41 +03:00
parent 455e8d2509
commit 918036605b
8 changed files with 206 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
//
// Created by Orange on 11/13/2024.
//
#pragma once
#include "omath/Vector3.hpp"
#include "omath/Triangle3d.hpp"
namespace omath::collision
{
struct Ray
{
Vector3 start;
Vector3 end;
};
class LineTracer
{
public:
LineTracer() = delete;
[[nodiscard]]
static bool CanTraceLine(const Ray& ray, const Triangle3d& triangle);
};
}