1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Some Vector2<->Vector3 interp

This commit is contained in:
Brian Fiete 2025-01-10 07:04:40 -08:00
parent be247d2c5b
commit 10014b185f

View file

@ -101,6 +101,8 @@ namespace Beefy.geom
}
}
public Vector2 XY => .(mX, mY);
public this(float x, float y, float z)
{
mX = x;
@ -306,5 +308,7 @@ namespace Beefy.geom
{
str.AppendF("{0:0.0#}, {1:0.0#}, {2:0.0#}", mX, mY, mZ);
}
public static Vector3 operator implicit(Vector2 vec) => .(vec.mX, vec.mY, 0);
}
}