mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,36 @@
|
|||
// <auto-generated /> - edit Vector.pack.tt to modify
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.Numerics;
|
||||
|
||||
public partial struct doubleQuat
|
||||
{
|
||||
public static doubleQuat Unpack(in floatQuat vector, Func<float, double> elementConverter)
|
||||
{
|
||||
QuaternionPack.Pack(vector, out doubleQuat result, elementConverter);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static doubleQuat Unpack(in floatQuat vector, Unpack.Float mode = Numerics.Unpack.Float.Cast)
|
||||
{
|
||||
return Unpack(vector, PackUtils.Float.ToDouble(mode));
|
||||
}
|
||||
|
||||
public static void Unpack(
|
||||
in ReadOnlySpan<floatQuat> source,
|
||||
Span<doubleQuat> destination,
|
||||
Func<float, double> elementConverter
|
||||
)
|
||||
{
|
||||
QuaternionPack.Pack(source, destination, elementConverter);
|
||||
}
|
||||
|
||||
public static void Unpack(
|
||||
in ReadOnlySpan<floatQuat> source,
|
||||
Span<doubleQuat> destination,
|
||||
Unpack.Float mode = Numerics.Unpack.Float.Cast
|
||||
)
|
||||
{
|
||||
Unpack(source, destination, PackUtils.Float.ToDouble(mode));
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue