This commit is contained in:
Rian Drake 2026-10-15 14:09:11 +13:00
commit b578433e37

View file

@ -0,0 +1,32 @@
// <auto-generated /> - edit Matrix.pack.tt to modify
#nullable enable
namespace Brutal.Numerics;
public partial struct float4x4
{
public static float4x4 Pack(in double4x4 vector, Func<double, float> elementConverter)
{
MatrixPack.Pack(vector, out float4x4 result, elementConverter);
return result;
}
public static void Pack(
in ReadOnlySpan<double4x4> source,
Span<float4x4> destination,
Func<double, float> elementConverter
)
{
MatrixPack.Pack(source, destination, elementConverter);
}
public static float4x4 Pack(in double4x4 vector)
{
return Pack(vector, f => (float)f);
}
public static void Pack(in ReadOnlySpan<double4x4> source, Span<float4x4> destination)
{
Pack(source, destination, f => (float)f);
}
}