Browse Source

Add one-argument constructor of math::Vec.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
023b0ea662
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      include/math.hpp

+ 1
- 0
include/math.hpp View File

@@ -188,6 +188,7 @@ struct Vec {
float y = 0.f; float y = 0.f;


Vec() {} Vec() {}
Vec(float x) : x(x), y(x) {}
Vec(float x, float y) : x(x), y(y) {} Vec(float x, float y) : x(x), y(y) {}


float& operator[](int i) { float& operator[](int i) {


Loading…
Cancel
Save