Merge pull request 'Add default constructor to dense vector' (#167) from misc into master

Reviewed-on: https://git.madvoxel.net/OpenVulkano/OpenVulkano/pulls/167
This commit is contained in:
Oleksii_Hyzha
2024-11-26 11:08:11 +01:00

View File

@@ -73,9 +73,10 @@ namespace OpenVulkano::Math
throw std::range_error("Value to big for DenseVector");
}
T data;
T data = 0;
public:
DenseVector3i() = default;
constexpr explicit DenseVector3i(const Math::Vector3i& vec3) : DenseVector3i(vec3.x, vec3.y, vec3.z) {}
constexpr explicit DenseVector3i(const Math::Vector3i_SIMD& vec3) : DenseVector3i(vec3.x, vec3.y, vec3.z) {}
constexpr DenseVector3i(T x, T y, T z)