mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
added conecpt to method
This commit is contained in:
@@ -30,6 +30,7 @@ namespace omath::primitives
|
|||||||
public:
|
public:
|
||||||
using NumericType = float;
|
using NumericType = float;
|
||||||
using VertexType = VertType;
|
using VertexType = VertType;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
using Vbo = std::vector<VertexType>;
|
using Vbo = std::vector<VertexType>;
|
||||||
using Vao = std::vector<Vector3<std::size_t>>;
|
using Vao = std::vector<Vector3<std::size_t>>;
|
||||||
@@ -97,6 +98,7 @@ namespace omath::primitives
|
|||||||
|
|
||||||
[[nodiscard]]
|
[[nodiscard]]
|
||||||
Vector3<float> vertex_to_world_space(const Vector3<float>& vertex_position) const
|
Vector3<float> vertex_to_world_space(const Vector3<float>& vertex_position) const
|
||||||
|
requires HasPosition<VertexType>
|
||||||
{
|
{
|
||||||
auto abs_vec = get_to_world_matrix() * mat_column_from_vector(vertex_position);
|
auto abs_vec = get_to_world_matrix() * mat_column_from_vector(vertex_position);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user