Vector documentation

This commit is contained in:
Simon Lübeß
2024-02-19 18:17:45 +01:00
parent b84ce5e482
commit f5f32eecb2
9 changed files with 180 additions and 8 deletions
+18
View File
@@ -3,19 +3,37 @@ using GlitchyEngine.Math.Attributes;
namespace GlitchyEngine.Math;
/// <summary>
/// Represents a vector with two half-precision floating-point values.
/// </summary>
/// <inheritdoc cref="Half" select="remarks" />
[Vector(typeof(Half), 2, "half")]
[VectorMath]
[ComparableVector]
[VectorCast(typeof(float2), true)]
public partial struct half2
{
}
/// <summary>
/// Represents a vector with three half-precision floating-point values.
/// </summary>
/// <inheritdoc cref="Half" select="remarks" />
[Vector(typeof(Half), 3, "half")]
[VectorMath]
[ComparableVector]
[VectorCast(typeof(float3), true)]
public partial struct half3
{
}
/// <summary>
/// Represents a vector with four half-precision floating-point values.
/// </summary>
/// <inheritdoc cref="Half" select="remarks" />
[Vector(typeof(Half), 4, "half")]
[VectorMath]
[ComparableVector]
[VectorCast(typeof(float4), true)]
public partial struct half4
{