(5c35a640e) Update tutorial-rework with dev

This commit is contained in:
Joonas Rikkonen
2019-03-27 20:52:47 +02:00
parent 47b16f4f9e
commit 080ac78ded
113 changed files with 3206 additions and 1298 deletions
@@ -753,6 +753,15 @@ namespace Barotrauma
}
}
/// <summary>
/// Float comparison. Note that may still fail in some cases.
/// </summary>
public static bool NearlyEqual(Vector2 a, Vector2 b, float epsilon = 0.0001f)
{
return NearlyEqual(a.X, b.X, epsilon) && NearlyEqual(a.Y, b.Y, epsilon);
}
/// <summary>
/// Returns a position in a curve.
/// </summary>
public static Vector2 Bezier(Vector2 start, Vector2 control, Vector2 end, float t)