// // Created by Vlad on 8/28/2025. // #include "omath/3d_primitives/plane.hpp" namespace omath::primitives { std::array>, 2> create_plane(const Vector3& vertex_a, const Vector3& vertex_b, const Vector3& direction, const float size) noexcept { Triangle> triangles; const auto second_vertex_a = vertex_a + direction * size; const auto second_vertex_b = vertex_b + direction * size; return std::array { Triangle{second_vertex_a, vertex_a, vertex_b}, Triangle{second_vertex_b, vertex_b, vertex_a} }; } } // namespace omath::primitives