daily update on 20240528 by nitload youmu

This commit is contained in:
Nitload
2024-05-28 17:45:54 +08:00
parent de399e22c2
commit 70890e3e33
88 changed files with 10678 additions and 5761 deletions
@@ -28,7 +28,7 @@
//
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
using StgSharp.Controlling;
using StgSharp.Math;
using System;
@@ -56,48 +56,14 @@ namespace StgSharp.Geometries
)
{
if (
vertexMat.colum0 + vertexMat.colum2 !=
vertexMat.colum1 + vertexMat.colum3
this[0] + this[2] !=
this[1] + this[3]
)
{
InternalIO.InternalWriteLog("Init of geometry item failed, because four vertices cannot form a rectangle.", LogType.Warning);
}
}
public Func<int,vec3d> MovCenterOperation => movCenterOperation;
public Func<int,vec3d> MovVertex01Operation => moveVertex0Operation;
public Func<int,vec3d> MovVertex02Operation => moveVertex1Operation;
public virtual vec3d MovCenter(int tick)
{
return movCenterOperation.Invoke(tick);
}
/// <summary>
/// Move the third vertex. this is a useless method for Parallelograms.
/// </summary>
/// <param name="tick">Current time tick</param>
/// <returns></returns>
/// <exception cref="UnusedVertexException">Geometry over defined</exception>
public override sealed vec3d MoveVertex2(int tick)
{
throw new UnusedVertexException();
}
/// <summary>
/// Move the third vertex. This method is useless for Parallelograms.
/// </summary>
/// <param name="tick">Current time tick</param>
/// <returns></returns>
/// <exception cref="UnusedVertexException">Geometry over defined</exception>
public override sealed vec3d MoveVertex3(int tick)
{
throw new UnusedVertexException();
}
internal override sealed void UpdateCoordinate(int tick)
{
}
}
}