mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
17 lines
448 B
C#
17 lines
448 B
C#
// <auto-generated /> - edit Vector.math.tt to modify
|
|
#nullable enable
|
|
|
|
namespace Brutal.Numerics;
|
|
|
|
public partial struct short3
|
|
{
|
|
/// <inheritdoc cref="Vector3.Cross" />
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static short3 Cross(short3 a, short3 b)
|
|
{
|
|
return new(
|
|
(short)(a.Y * b.Z - a.Z * b.Y),
|
|
(short)(a.Z * b.X - a.X * b.Z),
|
|
(short)(a.X * b.Y - a.Y * b.X));
|
|
}
|
|
}
|