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 double3x2
|
|
{
|
|
public static double3x2 Unpack(in float3x2 vector, Func<float, double> elementConverter)
|
|
{
|
|
MatrixPack.Pack(vector, out double3x2 result, elementConverter);
|
|
return result;
|
|
}
|
|
|
|
public static void Unpack(
|
|
in ReadOnlySpan<float3x2> source,
|
|
Span<double3x2> destination,
|
|
Func<float, double> elementConverter
|
|
)
|
|
{
|
|
MatrixPack.Pack(source, destination, elementConverter);
|
|
}
|
|
|
|
public static double3x2 Unpack(in float3x2 vector)
|
|
{
|
|
return Unpack(vector, f => f);
|
|
}
|
|
|
|
public static void Unpack(in ReadOnlySpan<float3x2> source, Span<double3x2> destination)
|
|
{
|
|
Unpack(source, destination, f => f);
|
|
}
|
|
}
|