mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
32 lines
833 B
C#
32 lines
833 B
C#
// <auto-generated /> - edit Matrix.pack.tt to modify
|
|
#nullable enable
|
|
|
|
namespace Brutal.Numerics;
|
|
|
|
public partial struct double4x4
|
|
{
|
|
public static double4x4 Unpack(in float4x4 vector, Func<float, double> elementConverter)
|
|
{
|
|
MatrixPack.Pack(vector, out double4x4 result, elementConverter);
|
|
return result;
|
|
}
|
|
|
|
public static void Unpack(
|
|
in ReadOnlySpan<float4x4> source,
|
|
Span<double4x4> destination,
|
|
Func<float, double> elementConverter
|
|
)
|
|
{
|
|
MatrixPack.Pack(source, destination, elementConverter);
|
|
}
|
|
|
|
public static double4x4 Unpack(in float4x4 vector)
|
|
{
|
|
return Unpack(vector, f => f);
|
|
}
|
|
|
|
public static void Unpack(in ReadOnlySpan<float4x4> source, Span<double4x4> destination)
|
|
{
|
|
Unpack(source, destination, f => f);
|
|
}
|
|
}
|