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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user