---
title: UnityEngine.MathematicsModule
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/modules/unityengine-mathematicsmodule
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/modules/unityengine-mathematicsmodule.md
last_updated: 2026-11-30
generated_at: 2026-12-01T00:11:30.163Z
locale: en-us
---

# UnityEngine.MathematicsModule

> The Mathematics module is a C# math library especially optimized for use with the Burst compiler. It provides vector types and common math functions with a shader-like syntax. When compiled with Burst, many operations have intrinsics implemented that use SIMD instructions.

## Definition

* **Type:** Module

## Classes

| Class                                                                      | Description                                                                                                                 |
| -------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| [Math](/engine/7000.0/script-reference/unity/mathematics/geometry/math.md) | Class containing math functions for [MinMaxAABB](/engine/7000.0/script-reference/unity/mathematics/geometry/minmaxaabb.md). |
| [math](/engine/7000.0/script-reference/unity/mathematics/math.md)          | A static class to contain various math functions and constants.                                                             |
| [noise](/engine/7000.0/script-reference/unity/mathematics/noise.md)        | A static class containing noise functions.                                                                                  |
| [svd](/engine/7000.0/script-reference/unity/mathematics/svd.md)            | Class with methods for computing the Singular Value Decomposition (SVD) of 3x3 matrices.                                    |

## Structs

| Struct                                                                                  | Description                                                                                                                                                                                                                               |
| --------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AffineTransform](/engine/7000.0/script-reference/unity/mathematics/affinetransform.md) | An affine transformation type.                                                                                                                                                                                                            |
| [bool2](/engine/7000.0/script-reference/unity/mathematics/bool2.md)                     | A 2 component vector of bools.                                                                                                                                                                                                            |
| [bool2x2](/engine/7000.0/script-reference/unity/mathematics/bool2x2.md)                 | A 2x2 matrix of bools.                                                                                                                                                                                                                    |
| [bool2x3](/engine/7000.0/script-reference/unity/mathematics/bool2x3.md)                 | A 2x3 matrix of bools.                                                                                                                                                                                                                    |
| [bool2x4](/engine/7000.0/script-reference/unity/mathematics/bool2x4.md)                 | A 2x4 matrix of bools.                                                                                                                                                                                                                    |
| [bool3](/engine/7000.0/script-reference/unity/mathematics/bool3.md)                     | A 3 component vector of bools.                                                                                                                                                                                                            |
| [bool3x2](/engine/7000.0/script-reference/unity/mathematics/bool3x2.md)                 | A 3x2 matrix of bools.                                                                                                                                                                                                                    |
| [bool3x3](/engine/7000.0/script-reference/unity/mathematics/bool3x3.md)                 | A 3x3 matrix of bools.                                                                                                                                                                                                                    |
| [bool3x4](/engine/7000.0/script-reference/unity/mathematics/bool3x4.md)                 | A 3x4 matrix of bools.                                                                                                                                                                                                                    |
| [bool4](/engine/7000.0/script-reference/unity/mathematics/bool4.md)                     | A 4 component vector of bools.                                                                                                                                                                                                            |
| [bool4x2](/engine/7000.0/script-reference/unity/mathematics/bool4x2.md)                 | A 4x2 matrix of bools.                                                                                                                                                                                                                    |
| [bool4x3](/engine/7000.0/script-reference/unity/mathematics/bool4x3.md)                 | A 4x3 matrix of bools.                                                                                                                                                                                                                    |
| [bool4x4](/engine/7000.0/script-reference/unity/mathematics/bool4x4.md)                 | A 4x4 matrix of bools.                                                                                                                                                                                                                    |
| [double2](/engine/7000.0/script-reference/unity/mathematics/double2.md)                 | A 2 component vector of doubles.                                                                                                                                                                                                          |
| [double2x2](/engine/7000.0/script-reference/unity/mathematics/double2x2.md)             | A 2x2 matrix of doubles.                                                                                                                                                                                                                  |
| [double2x3](/engine/7000.0/script-reference/unity/mathematics/double2x3.md)             | A 2x3 matrix of doubles.                                                                                                                                                                                                                  |
| [double2x4](/engine/7000.0/script-reference/unity/mathematics/double2x4.md)             | A 2x4 matrix of doubles.                                                                                                                                                                                                                  |
| [double3](/engine/7000.0/script-reference/unity/mathematics/double3.md)                 | A 3 component vector of doubles.                                                                                                                                                                                                          |
| [double3x2](/engine/7000.0/script-reference/unity/mathematics/double3x2.md)             | A 3x2 matrix of doubles.                                                                                                                                                                                                                  |
| [double3x3](/engine/7000.0/script-reference/unity/mathematics/double3x3.md)             | A 3x3 matrix of doubles.                                                                                                                                                                                                                  |
| [double3x4](/engine/7000.0/script-reference/unity/mathematics/double3x4.md)             | A 3x4 matrix of doubles.                                                                                                                                                                                                                  |
| [double4](/engine/7000.0/script-reference/unity/mathematics/double4.md)                 | A 4 component vector of doubles.                                                                                                                                                                                                          |
| [double4x2](/engine/7000.0/script-reference/unity/mathematics/double4x2.md)             | A 4x2 matrix of doubles.                                                                                                                                                                                                                  |
| [double4x3](/engine/7000.0/script-reference/unity/mathematics/double4x3.md)             | A 4x3 matrix of doubles.                                                                                                                                                                                                                  |
| [double4x4](/engine/7000.0/script-reference/unity/mathematics/double4x4.md)             | A 4x4 matrix of doubles.                                                                                                                                                                                                                  |
| [float2](/engine/7000.0/script-reference/unity/mathematics/float2.md)                   | A 2 component vector of floats.                                                                                                                                                                                                           |
| [float2x2](/engine/7000.0/script-reference/unity/mathematics/float2x2.md)               | A 2x2 matrix of floats.                                                                                                                                                                                                                   |
| [float2x3](/engine/7000.0/script-reference/unity/mathematics/float2x3.md)               | A 2x3 matrix of floats.                                                                                                                                                                                                                   |
| [float2x4](/engine/7000.0/script-reference/unity/mathematics/float2x4.md)               | A 2x4 matrix of floats.                                                                                                                                                                                                                   |
| [float3](/engine/7000.0/script-reference/unity/mathematics/float3.md)                   | A 3 component vector of floats.                                                                                                                                                                                                           |
| [float3x2](/engine/7000.0/script-reference/unity/mathematics/float3x2.md)               | A 3x2 matrix of floats.                                                                                                                                                                                                                   |
| [float3x3](/engine/7000.0/script-reference/unity/mathematics/float3x3.md)               | A 3x3 matrix of floats.                                                                                                                                                                                                                   |
| [float3x4](/engine/7000.0/script-reference/unity/mathematics/float3x4.md)               | A 3x4 matrix of floats.                                                                                                                                                                                                                   |
| [float4](/engine/7000.0/script-reference/unity/mathematics/float4.md)                   | A 4 component vector of floats.                                                                                                                                                                                                           |
| [float4x2](/engine/7000.0/script-reference/unity/mathematics/float4x2.md)               | A 4x2 matrix of floats.                                                                                                                                                                                                                   |
| [float4x3](/engine/7000.0/script-reference/unity/mathematics/float4x3.md)               | A 4x3 matrix of floats.                                                                                                                                                                                                                   |
| [float4x4](/engine/7000.0/script-reference/unity/mathematics/float4x4.md)               | A 4x4 matrix of floats.                                                                                                                                                                                                                   |
| [half](/engine/7000.0/script-reference/unity/mathematics/half.md)                       | A half precision float that uses 16 bits instead of 32 bits.                                                                                                                                                                              |
| [half2](/engine/7000.0/script-reference/unity/mathematics/half2.md)                     | A 2 component vector of halfs.                                                                                                                                                                                                            |
| [half3](/engine/7000.0/script-reference/unity/mathematics/half3.md)                     | A 3 component vector of halfs.                                                                                                                                                                                                            |
| [half4](/engine/7000.0/script-reference/unity/mathematics/half4.md)                     | A 4 component vector of halfs.                                                                                                                                                                                                            |
| [int2](/engine/7000.0/script-reference/unity/mathematics/int2.md)                       | A 2 component vector of ints.                                                                                                                                                                                                             |
| [int2x2](/engine/7000.0/script-reference/unity/mathematics/int2x2.md)                   | A 2x2 matrix of ints.                                                                                                                                                                                                                     |
| [int2x3](/engine/7000.0/script-reference/unity/mathematics/int2x3.md)                   | A 2x3 matrix of ints.                                                                                                                                                                                                                     |
| [int2x4](/engine/7000.0/script-reference/unity/mathematics/int2x4.md)                   | A 2x4 matrix of ints.                                                                                                                                                                                                                     |
| [int3](/engine/7000.0/script-reference/unity/mathematics/int3.md)                       | A 3 component vector of ints.                                                                                                                                                                                                             |
| [int3x2](/engine/7000.0/script-reference/unity/mathematics/int3x2.md)                   | A 3x2 matrix of ints.                                                                                                                                                                                                                     |
| [int3x3](/engine/7000.0/script-reference/unity/mathematics/int3x3.md)                   | A 3x3 matrix of ints.                                                                                                                                                                                                                     |
| [int3x4](/engine/7000.0/script-reference/unity/mathematics/int3x4.md)                   | A 3x4 matrix of ints.                                                                                                                                                                                                                     |
| [int4](/engine/7000.0/script-reference/unity/mathematics/int4.md)                       | A 4 component vector of ints.                                                                                                                                                                                                             |
| [int4x2](/engine/7000.0/script-reference/unity/mathematics/int4x2.md)                   | A 4x2 matrix of ints.                                                                                                                                                                                                                     |
| [int4x3](/engine/7000.0/script-reference/unity/mathematics/int4x3.md)                   | A 4x3 matrix of ints.                                                                                                                                                                                                                     |
| [int4x4](/engine/7000.0/script-reference/unity/mathematics/int4x4.md)                   | A 4x4 matrix of ints.                                                                                                                                                                                                                     |
| [MinMaxAABB](/engine/7000.0/script-reference/unity/mathematics/geometry/minmaxaabb.md)  | Axis aligned bounding box (AABB) stored in min and max form.                                                                                                                                                                              |
| [Plane](/engine/7000.0/script-reference/unity/mathematics/geometry/plane.md)            | A plane represented by a normal vector and a distance along the normal from the origin.                                                                                                                                                   |
| [quaternion](/engine/7000.0/script-reference/unity/mathematics/quaternion.md)           | A quaternion type for representing rotations.                                                                                                                                                                                             |
| [Random](/engine/7000.0/script-reference/unity/mathematics/random.md)                   | Random Number Generator based on xorshift. Designed for minimal state (32bits) to be easily embeddable into components. Core functionality is integer multiplication free to improve vectorization on less capable SIMD instruction sets. |
| [RigidTransform](/engine/7000.0/script-reference/unity/mathematics/rigidtransform.md)   | A rigid transformation type.                                                                                                                                                                                                              |
| [uint2](/engine/7000.0/script-reference/unity/mathematics/uint2.md)                     | A 2 component vector of uints.                                                                                                                                                                                                            |
| [uint2x2](/engine/7000.0/script-reference/unity/mathematics/uint2x2.md)                 | A 2x2 matrix of uints.                                                                                                                                                                                                                    |
| [uint2x3](/engine/7000.0/script-reference/unity/mathematics/uint2x3.md)                 | A 2x3 matrix of uints.                                                                                                                                                                                                                    |
| [uint2x4](/engine/7000.0/script-reference/unity/mathematics/uint2x4.md)                 | A 2x4 matrix of uints.                                                                                                                                                                                                                    |
| [uint3](/engine/7000.0/script-reference/unity/mathematics/uint3.md)                     | A 3 component vector of uints.                                                                                                                                                                                                            |
| [uint3x2](/engine/7000.0/script-reference/unity/mathematics/uint3x2.md)                 | A 3x2 matrix of uints.                                                                                                                                                                                                                    |
| [uint3x3](/engine/7000.0/script-reference/unity/mathematics/uint3x3.md)                 | A 3x3 matrix of uints.                                                                                                                                                                                                                    |
| [uint3x4](/engine/7000.0/script-reference/unity/mathematics/uint3x4.md)                 | A 3x4 matrix of uints.                                                                                                                                                                                                                    |
| [uint4](/engine/7000.0/script-reference/unity/mathematics/uint4.md)                     | A 4 component vector of uints.                                                                                                                                                                                                            |
| [uint4x2](/engine/7000.0/script-reference/unity/mathematics/uint4x2.md)                 | A 4x2 matrix of uints.                                                                                                                                                                                                                    |
| [uint4x3](/engine/7000.0/script-reference/unity/mathematics/uint4x3.md)                 | A 4x3 matrix of uints.                                                                                                                                                                                                                    |
| [uint4x4](/engine/7000.0/script-reference/unity/mathematics/uint4x4.md)                 | A 4x4 matrix of uints.                                                                                                                                                                                                                    |
