summaryrefslogtreecommitdiff
path: root/include/JSystem/JGeometry.h
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2024-01-22 07:23:54 -0800
committerGitHub <noreply@github.com>2024-01-22 17:23:54 +0200
commit697cd08979c12f2a1ebd32f12a1a306b730f14ec (patch)
treecf87190adf687a837db8424dc00ffa21da99e837 /include/JSystem/JGeometry.h
parent5a735a495680b6b410a242cbe570a72b789d7016 (diff)
some various J2D/J3D work (#2043)
* most of J2DPicture done * fix GXSetTexCoordGen * some j3d work
Diffstat (limited to 'include/JSystem/JGeometry.h')
-rw-r--r--include/JSystem/JGeometry.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/JSystem/JGeometry.h b/include/JSystem/JGeometry.h
index 848a79e1a5..325d4f7432 100644
--- a/include/JSystem/JGeometry.h
+++ b/include/JSystem/JGeometry.h
@@ -296,8 +296,11 @@ struct TVec3<f32> {
template <typename T>
struct TVec2 {
TVec2() {}
+ TVec2(T v) { set(v); }
TVec2(T x, T y) { set(x, y); }
+ void set(T v) { y = x = v; }
+
void set(T x, T y) {
this->x = x;
this->y = y;