unity c# sin code example
Example: unity c# sin
float a = Mathf.Sin(Mathf.PI/2f)
Debug.Log("Mathf.Sin(Mathf.PI/2f) = "a); // Mathf.Sin(Mathf.PI/2f) = 1
float a = Mathf.Sin(Mathf.PI/2f)
Debug.Log("Mathf.Sin(Mathf.PI/2f) = "a); // Mathf.Sin(Mathf.PI/2f) = 1