49 lines
1.2 KiB
C#
49 lines
1.2 KiB
C#
|
namespace Quadratic.Carto.MathExt;
|
||
|
|
||
|
|
||
|
public static partial class VectorsExt
|
||
|
{
|
||
|
public static Godot.Vector3 AsGodot(this System.Numerics.Vector3 v)
|
||
|
{
|
||
|
return new Godot.Vector3(v.X, v.Y, v.Z);
|
||
|
}
|
||
|
|
||
|
public static System.Numerics.Vector3 AsSystem(this Godot.Vector3 v)
|
||
|
{
|
||
|
return new System.Numerics.Vector3(v.X, v.Y, v.Z);
|
||
|
}
|
||
|
|
||
|
public static Godot.Vector2 AsGodot(this System.Numerics.Vector2 v)
|
||
|
{
|
||
|
return new Godot.Vector2(v.X, v.Y);
|
||
|
}
|
||
|
|
||
|
public static System.Numerics.Vector2 AsSystem(this Godot.Vector2 v)
|
||
|
{
|
||
|
return new System.Numerics.Vector2(v.X, v.Y);
|
||
|
}
|
||
|
|
||
|
public static Godot.Quaternion AsGodot(this System.Numerics.Quaternion q)
|
||
|
{
|
||
|
return new Godot.Quaternion(q.X, q.Y, q.Z, q.W);
|
||
|
}
|
||
|
|
||
|
public static System.Numerics.Quaternion AsSystem(this Godot.Quaternion q)
|
||
|
{
|
||
|
return new System.Numerics.Quaternion(q.X, q.Y, q.Z, q.W);
|
||
|
}
|
||
|
|
||
|
public static Godot.Vector4 AsGodot(this System.Numerics.Vector4 v)
|
||
|
{
|
||
|
return new Godot.Vector4(v.X, v.Y, v.Z, v.W);
|
||
|
}
|
||
|
|
||
|
public static System.Numerics.Vector4 AsSystem(this Godot.Vector4 v)
|
||
|
{
|
||
|
return new System.Numerics.Vector4(v.X, v.Y, v.Z, v.W);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|