This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Rack
mirror of
https://github.com/VCVRack/Rack.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
38
Wiki
Activity
Browse Source
Add one-argument constructor of math::Vec.
tags/v2.0.0
Andrew Belt
3 years ago
parent
78ebb905e5
commit
023b0ea662
1 changed files
with
1 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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) {
Write
Preview
Loading…
Cancel
Save