daily update on 20240424 by nitloady youmu

This commit is contained in:
YoumuLiu
2024-04-25 10:37:33 +08:00
parent 32c0a0f99b
commit dd6e8247bf
40 changed files with 568 additions and 119 deletions
+8
View File
@@ -178,6 +178,13 @@ namespace StgSharp.Math
return new vec3d(vec.v / value);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static unsafe implicit operator vec3d((float, float, float) tuple)
{
vec3d v = *(vec3d*)&tuple;
v.vec.W = 0.0f;
return v;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static vec3d operator +(vec3d left, vec3d right)
@@ -203,6 +210,7 @@ namespace StgSharp.Math
return Cross(left,right) == Zero;
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static vec3d Cross(vec3d left, vec3d right)