From 23b8c8f107d2ac1cb4e7bef155b80fea32ca8438 Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Wed, 11 Feb 2026 03:04:49 +0100 Subject: [PATCH] implicit aligment conversion --- interfaces/Crafter.Math-Vector.cppm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/interfaces/Crafter.Math-Vector.cppm b/interfaces/Crafter.Math-Vector.cppm index 0ab07ba..e961638 100755 --- a/interfaces/Crafter.Math-Vector.cppm +++ b/interfaces/Crafter.Math-Vector.cppm @@ -265,6 +265,14 @@ namespace Crafter { this->v[i] /= b; } } + template + operator Vector() const { + Vector returnVector; + for(std::uint32_t i = 0; i < Len; i++) { + returnVector->v[i] = this->v[i]; + } + return returnVector; + } constexpr void Normalize() { float fLength = Length();