mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +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,102 @@
|
|||
// <auto-generated /> - edit Matrix.operators.tt to modify
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.Numerics;
|
||||
|
||||
public partial struct float3x2
|
||||
{
|
||||
/// <inheritdoc cref="Matrix3x2.op_Addition(Matrix3x2, Matrix3x2)" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static float3x2 operator +(float3x2 left, float3x2 right)
|
||||
{
|
||||
float3x2 result;
|
||||
|
||||
result.X = left.X + right.X;
|
||||
result.Y = left.Y + right.Y;
|
||||
result.Z = left.Z + right.Z;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Matrix3x2.op_Equality(Matrix3x2, Matrix3x2)" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static bool operator ==(float3x2 left, float3x2 right)
|
||||
{
|
||||
return left.X == right.X && left.Y == right.Y && left.Z == right.Z;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Matrix3x2.op_Inequality(Matrix3x2, Matrix3x2)" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static bool operator !=(float3x2 left, float3x2 right)
|
||||
{
|
||||
return left.X != right.X || left.Y != right.Y || left.Z != right.Z;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Matrix3x2.op_Multiply(Matrix3x2, Matrix3x2)" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static float3x2 operator *(float3x2 left, float3x2 right)
|
||||
{
|
||||
float3x2 result;
|
||||
|
||||
result.X = new float2(
|
||||
left.X.X * right.X.X + left.X.Y * right.Y.X,
|
||||
left.X.X * right.X.Y + left.X.Y * right.Y.Y
|
||||
);
|
||||
result.Y = new float2(
|
||||
left.Y.X * right.X.X + left.Y.Y * right.Y.X,
|
||||
left.Y.X * right.X.Y + left.Y.Y * right.Y.Y
|
||||
);
|
||||
result.Z = new float2(
|
||||
left.Z.X * right.X.X + left.Z.Y * right.Y.X + right.Z.X,
|
||||
left.Z.X * right.X.Y + left.Z.Y * right.Y.Y + right.Z.Y
|
||||
);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Multiply(float3x2, float2)" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static float3 operator *(float3x2 matrix, float2 vector)
|
||||
{
|
||||
return Multiply(matrix, vector);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Matrix3x2.op_Multiply(Matrix3x2, float)" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static float3x2 operator *(float3x2 left, float right)
|
||||
{
|
||||
float3x2 result;
|
||||
|
||||
result.X = left.X * right;
|
||||
result.Y = left.Y * right;
|
||||
result.Z = left.Z * right;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Matrix3x2.op_Subtraction(Matrix3x2, Matrix3x2)" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static float3x2 operator -(float3x2 left, float3x2 right)
|
||||
{
|
||||
float3x2 result;
|
||||
|
||||
result.X = left.X - right.X;
|
||||
result.Y = left.Y - right.Y;
|
||||
result.Z = left.Z - right.Z;
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Matrix3x2.op_UnaryNegation(Matrix3x2)" />
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static float3x2 operator -(float3x2 value)
|
||||
{
|
||||
float3x2 result;
|
||||
|
||||
result.X = -value.X;
|
||||
result.Y = -value.Y;
|
||||
result.Z = -value.Z;
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue