MoonTools.Bonk/Bonk/SweepTest/SweepResult.cs

22 lines
466 B
C#
Raw Permalink Normal View History

2020-01-05 07:17:29 +00:00
using System;
using System.Numerics;
namespace MoonTools.Core.Bonk
{
public struct SweepResult<T> where T : IEquatable<T>
2020-01-05 07:17:29 +00:00
{
public static SweepResult<T> False = new SweepResult<T>();
2020-01-05 07:17:29 +00:00
public bool Hit { get; }
public Vector2 Motion { get; }
public T ID { get; }
public SweepResult(bool hit, Vector2 motion, T id)
2020-01-05 07:17:29 +00:00
{
Hit = hit;
Motion = motion;
ID = id;
}
}
}