mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
ScriptCore: matrix generator
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using GlitchyEngine.Math;
|
||||
using GlitchyEngine.Math.Attributes;
|
||||
|
||||
namespace GlitchyEngine.Math;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a vector with two boolean values.
|
||||
/// </summary>
|
||||
[Vector(typeof(bool), 2, "bool")]
|
||||
[VectorLogic]
|
||||
public partial struct bool2
|
||||
{
|
||||
public static bool2 operator !(bool2 value)
|
||||
{
|
||||
return new bool2(!value.X, !value.Y);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Represents a vector with three boolean values.
|
||||
/// </summary>
|
||||
[Vector(typeof(bool), 3, "bool")]
|
||||
[VectorLogic]
|
||||
public partial struct bool3
|
||||
{
|
||||
public static bool3 operator !(bool3 value)
|
||||
{
|
||||
return new bool3(!value.X, !value.Y, !value.Z);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Represents a vector with four boolean values.
|
||||
/// </summary>
|
||||
[Vector(typeof(bool), 4, "bool")]
|
||||
[VectorLogic]
|
||||
public partial struct bool4
|
||||
{
|
||||
public static bool4 operator !(bool4 value)
|
||||
{
|
||||
return new bool4(!value.X, !value.Y, !value.Z, !value.W);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user