Skip to content

Commit

Permalink
DVec3 contructor takes double instead of float
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed Sep 17, 2024
1 parent 4c9d443 commit eeffad9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ Vec2 Vec3::xz() const { return {x, z}; }
Vec2 Vec3::yz() const { return {y, z}; }
Vec2 Vec3::xy() const { return {x, y}; }

DVec3::DVec3(float a) : x(a), y(a), z(a) {}
DVec3::DVec3(double a) : x(a), y(a), z(a) {}

DVec3::DVec3(double x, double y, double z) : x(x), y(y), z(z) {}

Expand Down
2 changes: 1 addition & 1 deletion src/core/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ struct LUMIX_CORE_API Vec3 {
struct LUMIX_CORE_API DVec3
{
DVec3() {}
DVec3(float a);
DVec3(double a);
DVec3(double x, double y, double z);
DVec3(const DVec3& rhs) = default;
explicit DVec3(const Vec3& rhs);
Expand Down

0 comments on commit eeffad9

Please sign in to comment.