diff options
| author | robojumper <robojumper@gmail.com> | 2025-04-05 22:35:43 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2025-04-07 22:12:40 +0200 |
| commit | 144533e9f97274393d58ee324eca71b9da3ede59 (patch) | |
| tree | 8f1450cc059081b92ff54a351f212464b888e7cd /include | |
| parent | 67816d6cba9fe15c9c8b43e7cc916215a74d1333 (diff) | |
d_lyt_msg_window_demo OK
Diffstat (limited to 'include')
| -rw-r--r-- | include/toBeSorted/lyt_vec2f.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/toBeSorted/lyt_vec2f.h b/include/toBeSorted/lyt_vec2f.h index 54bc65c4..cdab4f91 100644 --- a/include/toBeSorted/lyt_vec2f.h +++ b/include/toBeSorted/lyt_vec2f.h @@ -7,6 +7,15 @@ struct LytVec2f { LytVec2f() {} ~LytVec2f() {} + + LytVec2f(const LytVec2f &other) { + set(other.x, other.y); + } + void set(f32 fx, f32 fy) { + x = fx; + y = fy; + } + f32 x; f32 y; }; |
