Core/Maps: Fixed map min height calculation

This commit is contained in:
hondacrx
2018-03-31 12:38:21 -04:00
parent d2f7752c77
commit bac9bc6955
4 changed files with 85 additions and 49 deletions
+13
View File
@@ -207,6 +207,19 @@ namespace Framework.GameMath
{
return Vector3.DotProduct(p, this.Normal) - this.Constant;
}
public void getEquation(ref Vector3 n, out float d)
{
double _d;
getEquation(ref n, out _d);
d = (float)_d;
}
void getEquation(ref Vector3 n, out double d)
{
n = _normal;
d = -_const;
}
#endregion
#region Overrides