How do I get the system type of Mathf in JS ?

I am attempting to call a function in Mathf by utilizing its string name, which requires the use of the Invoke function. However, before I can do this, I need to get the type of Mathf:

var mathLibrary : System.Type = System.Type.GetType("System.Type.Mathf");

However, no matter if I use “Mathf”, “System.Mathf” or even “Type.Mathf”, this function always returns null. What is the correct syntax ?

Thank you in advance and have a nice day

So first off Mathf is not from System, which is one reason it does not find it. Math is in System but Mathf is in UnityEngine.

Second, it seems GetType requires extra info when dealing with custom classes/structs. By custom I mean anything that is not in .NET. Here is what it wants: “UnityEngine.Mathf, UnityEngine”

So this should go fine (it does for me):

var mathLibrary : System.Type = System.Type.GetType("UnityEngine.Mathf, UnityEngine");
Debug.Log(mathLibrary == null);