daily update on 20241002 by nitload youmu, intrinsic function rebuild, syntax style arrange

This commit is contained in:
Nitload
2024-10-03 04:03:06 +08:00
parent 0979123ac0
commit 6e2f93b053
265 changed files with 26732 additions and 19058 deletions
@@ -38,39 +38,39 @@ using System.Threading.Tasks;
namespace StgSharp.Geometries
{
public interface IPlainEntity
{
public vec2d CenterPosition { get; set; }
public Vec2 CenterPosition
{
get;
set;
}
public bool CollideWith(IPlainEntity entity);
public bool CollideWith( IPlainEntity entity );
}
public class PlainEntity : IPlainEntity
{
private PlainGeometry _shape;
public PlainEntity(PlainGeometry shape)
public PlainEntity( PlainGeometry shape )
{
_shape = shape;
}
bool IPlainEntity.CollideWith(IPlainEntity entity)
bool IPlainEntity.CollideWith( IPlainEntity entity )
{
throw new NotImplementedException();
}
vec2d IPlainEntity.CenterPosition
Vec2 IPlainEntity.CenterPosition
{
get => _shape.Coordination.LocalOrigin.Coord.XY;
set => throw new InvalidOperationException();
}
}
}