using System; using System.Numerics; namespace MoonTools.Bonk { public struct SweepResult where T : IEquatable { public readonly static SweepResult False = new SweepResult(); public bool Hit { get; } public Vector2 Motion { get; } public T ID { get; } public SweepResult(bool hit, Vector2 motion, T id) { Hit = hit; Motion = motion; ID = id; } } }