# Programming with mathematics

> Use Unity's mathematical APIs to apply trigonometric, logarithmic, and other functions in your application, move objects with vectors, and generate random values.

Unity exposes several public APIs that allow you to work with mathematical concepts in your code. These APIs are useful for manipulating vectors, matrices, and other mathematical constructs that are common in game development.

| **Topic**                                                                                                                      | **Description**                                                                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **[Moving objects with vectors](/engine/6000.0/manual/scripting/object-oriented-development/programming-math/vectors.md)**     | Perform vector arithmetic with Unity's 2D, 3D, and 4D vector classes to manage the position and speed of objects and the distance between them.                                        |
| **[Using common math functions](/engine/6000.0/manual/scripting/object-oriented-development/programming-math/class-mathf.md)** | Use Unity's [`Mathf`](/engine/6000.0/script-reference/unityengine/mathf.md) class to apply trigonometric, logarithmic, and other math functions commonly required in game development. |
| **[Using randomness](/engine/6000.0/manual/scripting/object-oriented-development/programming-math/class-random.md)**           | Use the [`Random`](/engine/6000.0/script-reference/unityengine/random.md) class to generate various types of random values commonly required in game development.                      |

## Additional resources

* [Unity Scripting reference](ScriptRef:index)
* [Unity Mathematics package](https://docs.unity3d.com/Packages/com.unity.mathematics@latest)
