Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created June 15, 2018 07:52
Show Gist options
  • Save todorok1/b046b9a54a68ada4260342240f1402a2 to your computer and use it in GitHub Desktop.
Save todorok1/b046b9a54a68ada4260342240f1402a2 to your computer and use it in GitHub Desktop.
無限大について全力で考えてみる
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