mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Some Vector2<->Vector3 interp
This commit is contained in:
parent
be247d2c5b
commit
10014b185f
1 changed files with 4 additions and 0 deletions
|
@ -101,6 +101,8 @@ namespace Beefy.geom
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Vector2 XY => .(mX, mY);
|
||||||
|
|
||||||
public this(float x, float y, float z)
|
public this(float x, float y, float z)
|
||||||
{
|
{
|
||||||
mX = x;
|
mX = x;
|
||||||
|
@ -306,5 +308,7 @@ namespace Beefy.geom
|
||||||
{
|
{
|
||||||
str.AppendF("{0:0.0#}, {1:0.0#}, {2:0.0#}", mX, mY, mZ);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue