Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Log() [2/2]

static float System.MathF.Log ( float x,
float y )
inlinestatic

Definition at line 228 of file MathF.cs.

229 {
230 if (float.IsNaN(x))
231 {
232 return x;
233 }
234 if (float.IsNaN(y))
235 {
236 return y;
237 }
238 if (y == 1f)
239 {
240 return float.NaN;
241 }
242 if (x != 1f && (y == 0f || float.IsPositiveInfinity(y)))
243 {
244 return float.NaN;
245 }
246 return Log(x) / Log(y);
247 }
static float Log(float x)

References System.MathF.Log().