MoonWorks/src/Collision/Fixed/IShape2D.cs

16 lines
593 B
C#
Raw Normal View History

using MoonWorks.Math.Fixed;
2022-03-24 06:07:34 +00:00
namespace MoonWorks.Collision.Fixed
2022-03-24 06:07:34 +00:00
{
public interface IShape2D : ICollidable, System.IEquatable<IShape2D>
2022-03-24 06:07:34 +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>
Vector2 Support(Vector2 direction, Transform2D transform);
}
}