mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
style fix
This commit is contained in:
@@ -16,16 +16,13 @@ namespace omath::collision
|
|||||||
using VertexType = Vector3<NumericType>;
|
using VertexType = Vector3<NumericType>;
|
||||||
explicit MeshCollider(MeshType mesh): m_mesh(std::move(mesh))
|
explicit MeshCollider(MeshType mesh): m_mesh(std::move(mesh))
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
const Vector3<float>& find_furthest_vertex(const Vector3<float>& direction) const
|
const Vector3<float>& find_furthest_vertex(const Vector3<float>& direction) const
|
||||||
{
|
{
|
||||||
return *std::ranges::max_element(m_mesh.m_vertex_buffer, [&direction](const auto& first, const auto& second)
|
return *std::ranges::max_element(m_mesh.m_vertex_buffer, [&direction](const auto& first, const auto& second)
|
||||||
{
|
{ return first.dot(direction) < second.dot(direction); });
|
||||||
return first.dot(direction) < second.dot(direction);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
|
|||||||
Reference in New Issue
Block a user