add config system and window dragging

This commit is contained in:
kawaiizenbo 2023-06-29 18:30:32 -07:00
parent 6e584de0e6
commit a18cb2a137
22 changed files with 354 additions and 104 deletions

View file

@ -17,6 +17,19 @@ public class MathUtils
return bd.doubleValue();
}
public static int d2iSafe(Object value)
{
int out = 0;
try
{
out = (int)Math.floor((double)value);
} catch (Exception e)
{
out = (int)value;
}
return out;
}
public static double length2D(Vec3d vec3d)
{
return MathHelper.sqrt((float)(vec3d.x * vec3d.x + vec3d.z * vec3d.z));