Browse Source

Add back single-argument Vec constructor.

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

+ 1
- 0
include/math.hpp View File

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

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

float& operator[](int i) {


Loading…
Cancel
Save