[API] Add ImVec2#set(x, y) and ImVec2#set(ImVec2) methods
This commit is contained in:
1 parent
fb80b8d8a1
commit
2d369dee06
1 file changed
+10
@@ -22,6 +22,16 @@ public final class ImVec2 implements Cloneable {
|
|||||||
this.y = y;
|
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
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "ImVec2{"
|
return "ImVec2{"
|
||||||
|
|||||||
Reference in new issue
Block a user