This commit is contained in:
2026-01-26 17:21:23 +03:00
parent ee2f084e0b
commit d6746f6243
2 changed files with 13 additions and 17 deletions

View File

@@ -5,15 +5,5 @@
namespace omath::primitives
{
std::array<Triangle<Vector3<float>>, 2> create_plane(const Vector3<float>& vertex_a,
const Vector3<float>& vertex_b,
const Vector3<float>& direction, const float size) noexcept
{
const auto second_vertex_a = vertex_a + direction * size;
return std::array
{
Triangle{second_vertex_a, vertex_a, vertex_b},
Triangle{second_vertex_a, vertex_b + direction * size, vertex_b}
};
}
} // namespace omath::primitives