Version: Unity 6.5 Alpha (6000.5)
Language : English
Create a property visitor with low-level APIs
Introduction to Unity math APIs

Programming with math

Unity provides several APIs for mathematical operations commonly required in games programming, including common mathe functions, random numbers, and systems such as vectors, matrices, and quaternionsUnity’s standard way of representing rotations as data. When writing code that deals with rotations, you should usually use the Quaternion class and its methods. More info
See in Glossary
.

Topic Description
Introduction to math programming in Unity Understand the different math APIs Unity provides and how they compare.
Unity Engine math APIs Use the collection of math APIs in the Unity.Engine namespace to access common mathematical operations, including trigonometric and logarithmic functions, random number generation, and working with vectors, matrices, and quaternions.
Unity Mathematics APIs Use the collection of SIMD-friendly, Burst-compilable math APIs in the Unity.Mathematics namespace to access common mathematical operations, including trigonometric and logarithmic functions, random number generation, and working with vectors, matrices, and quaternions.

Additional resources

Create a property visitor with low-level APIs
Introduction to Unity math APIs