daily update on 20240828 by nitload youmu, autotexture added

This commit is contained in:
Nitload
2024-08-28 10:58:31 +08:00
parent d082071f2d
commit 1ee4e4a42f
586 changed files with 60910 additions and 123106 deletions
+5 -5
View File
@@ -39,7 +39,7 @@ namespace StgSharp.Math
/// Vec2Ds in StgSharp are default used as colum vector.
/// </summary>
[StructLayout(LayoutKind.Explicit, Size = 16, Pack = 16)]
public struct vec2d:IVector
public struct vec2d : IVector
{
[FieldOffset(0)] internal unsafe fixed float num[2];
@@ -97,15 +97,15 @@ namespace StgSharp.Math
{
return new vec2d(vec.v * value);
}
public static vec2d operator *(float value, vec2d vec)
{
return new vec2d(vec.v * value);
}
public static vec2d operator /(vec2d vec, float value)
{
return new vec2d(vec.v / value);
}
public static vec2d operator *(float value, vec2d vec)
{
return new vec2d(vec.v * value);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static vec2d operator +(vec2d left, vec2d right)