implement smart bullet
This commit is contained in:
parent
21f7d1d5f4
commit
0e01ff0fb9
9 changed files with 54 additions and 21 deletions
|
@ -22,7 +22,6 @@ internal static class PositionHelpers
|
|||
|
||||
public static FloatPosition ToFloatPosition(this PixelPosition position) => new(position.X, position.Y);
|
||||
|
||||
|
||||
public static double Distance(this FloatPosition p1, FloatPosition p2)
|
||||
=> Math.Sqrt(
|
||||
Math.Pow(p1.X - p2.X, 2) +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue