daily update on 20240828 by nitload youmu, autotexture added
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user