MoonTools.Bonk/Bonk/IShape2D.cs

18 lines
662 B
C#
Raw Permalink Normal View History

2019-09-06 08:11:58 +00:00
using System;
2019-10-31 23:19:30 +00:00
using System.Numerics;
2020-02-21 02:07:59 +00:00
using MoonTools.Structs;
2019-09-06 08:11:58 +00:00
2020-02-21 02:07:59 +00:00
namespace MoonTools.Bonk
2019-09-06 08:11:58 +00:00
{
2020-01-02 09:40:03 +00:00
public interface IShape2D : IHasAABB2D, IEquatable<IShape2D>
2019-09-06 08:11:58 +00:00
{
2019-10-25 21:01:36 +00:00
/// <summary>
/// A Minkowski support function. Gives the farthest point on the edge of a shape along the given direction.
/// </summary>
/// <param name="direction">A normalized Vector2.</param>
/// <param name="transform">A Transform for transforming the shape vertices.</param>
/// <returns>The farthest point on the edge of the shape along the given direction.</returns>
2019-09-06 08:11:58 +00:00
Vector2 Support(Vector2 direction, Transform2D transform);
}
}