ImGui API
This commit is contained in:
1 parent
b59aea96d9
commit
fcecffa5fa
45 files changed
+6025
-3583
No files matched your search
@@ -1,7 +1,8 @@
|
||||
package imgui;
|
||||
|
||||
public class ImVec2 {
|
||||
public static ImVec2 TMP = new ImVec2();
|
||||
import java.util.Objects;
|
||||
|
||||
public final class ImVec2 {
|
||||
public float x;
|
||||
public float y;
|
||||
|
||||
@@ -12,4 +13,25 @@ public class ImVec2 {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ImVec2{" +
|
||||
"x=" + x +
|
||||
", y=" + y +
|
||||
'}';
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
ImVec2 imVec2 = (ImVec2) o;
|
||||
return Float.compare(imVec2.x, x) == 0 && Float.compare(imVec2.y, y) == 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(x, y);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user