Created
June 15, 2018 07:52
-
-
Save todorok1/b046b9a54a68ada4260342240f1402a2 to your computer and use it in GitHub Desktop.
無限大について全力で考えてみる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Start(){ | |
CheckMathfInfinity(); | |
} | |
void CheckMathfInfinity(){ | |
if (Mathf.Infinity == float.PositiveInfinity){ | |
Debug.Log("Mathf.Infinityはfloatの正の無限大と完全に一致"); | |
} | |
if (Mathf.NegativeInfinity == float.NegativeInfinity){ | |
Debug.Log("Mathf.NegativeInfinityはfloatの負の無限大と完全に一致"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment