Trigonometry in Java

Is there a way to use trigonometric functions in java without a certain library?

I would recommend to ask java questions on java boards.
Unity does not support it.

If you talk about unityscript / javascript in unity, then you can use them through the Mathf class from .NET

So does the mathf come with unity?

Yes

Open Unity, at the top is a menu bar, at the far right is an item that says “Help”, click on that. Now, in that list is a menu item labeled “Scripting Manual” now click on that, this will open you favorite web browser and have the scripting manual opened.

Now, at this point there is a text box that you can type in on the left side, you will see the word “Menu” with a rectangle box that you can type into. What you want to do is use your mouse, move to that box, click in it so that you have a flashing cursor. At this point type in the word “mathf” but without the quotes. After you have typed that into that box, simply hit your return key on your keyboard and wait like 2 or 3 seconds, the screen will refresh and on the right side will be a list of mathf references.

You will probably want to start at the top and read through that list to see if you can find the particular math function you want. mathf actually stands for “math functions”, when you find the function you want, click on its name, it should be the color blue and is a web link to the information about how to use that function.

Hope this helps.