匿名 ಠ_ಠ

#純靠北工程師4p1

2021-03-29

3年前

public static float Sign(float f) {
    return f >= 0F ? 1F : -1F;
}
Unity的工程師這樣寫程式實在是有點嚇到我惹...

https://github.com/Unity-Technologies/UnityCsReference/blob/master/Runtime/Export/Math/Mathf.cs