[API] Add ImVec2#set(x, y) and ImVec2#set(ImVec2) methods

This commit is contained in:
SpaiR committed 2021-02-27 16:15:33 +02:00
1 parent fb80b8d8a1
commit 2d369dee06
1 file changed
+10
@@ -22,6 +22,16 @@ public final class ImVec2 implements Cloneable {
this.y = y;
}
public void set(final float x, final float y) {
this.x = x;
this.y = y;
}
public void set(final ImVec2 imVec2) {
this.x = imVec2.x;
this.y = imVec2.y;
}
@Override
public String toString() {
return "ImVec2{"