mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-14 15:33:26 +00:00
added trace line
This commit is contained in:
22
include/omath/collision/LineTracer.hpp
Normal file
22
include/omath/collision/LineTracer.hpp
Normal 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);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user