mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 23:13:26 +00:00
23 lines
587 B
C++
23 lines
587 B
C++
//
|
|
// Created by Vladislav on 06.12.2025.
|
|
//
|
|
#pragma once
|
|
#include <omath/linear_algebra/vector3.hpp>
|
|
|
|
namespace omath::collision
|
|
{
|
|
template<class VecType = Vector3<float>>
|
|
class ColliderInterface
|
|
{
|
|
public:
|
|
using VectorType = VecType;
|
|
virtual ~ColliderInterface() = default;
|
|
|
|
[[nodiscard]]
|
|
virtual VectorType find_abs_furthest_vertex_position(const VectorType& direction) const = 0;
|
|
|
|
[[nodiscard]]
|
|
virtual const VectorType& get_origin() const = 0;
|
|
virtual void set_origin(const VectorType& new_origin) = 0;
|
|
};
|
|
} |