Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Documentation~/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Plus elementary functions:

You can install the Mathematics package through Unity's Package Manager. For more information, see the Unity User Manual documentation on [Adding and removing packages](https://docs.unity3d.com/Manual/upm-ui-actions.html).

>[!IMPORTANT]
>From Unity 6.5, Unity Mathematics is a built-in module of the core Editor and Engine and its APIs are available to user code by default in the `Unity.Mathematics` namespace, with no package installation required. Accordingly, from Unity 6.5 the Unity Mathematics API documentation is part of the [core Scripting API reference](https://docs.unity3d.com/ScriptReference/Unity.Mathematics.math.html), and the user manual is integrated with [the core Unity user manual](https://docs.unity3d.com/Manual/unity-mathematics.html).

### Editor config

Unity Mathematics uses [editorconfig](http://editorconfig.org/) to keep files formatted for EOL and spaces.
Expand Down
4 changes: 2 additions & 2 deletions src/Unity.Mathematics/math.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2511,7 +2511,7 @@ public static bool4 ispow2(uint4 x)
public static double4 asin(double4 x) { return new double4(asin(x.x), asin(x.y), asin(x.z), asin(x.w)); }


/// <summary>Returns the result of rounding a float value up to the nearest integral value less or equal to the original value.</summary>
/// <summary>Returns the result of rounding a float value down to the nearest integral value less or equal to the original value.</summary>
/// <param name="x">Input value.</param>
/// <returns>The round down to nearest integral value of the input.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
Expand All @@ -2536,7 +2536,7 @@ public static bool4 ispow2(uint4 x)
public static float4 floor(float4 x) { return new float4(floor(x.x), floor(x.y), floor(x.z), floor(x.w)); }


/// <summary>Returns the result of rounding a double value up to the nearest integral value less or equal to the original value.</summary>
/// <summary>Returns the result of rounding a double value down to the nearest integral value less or equal to the original value.</summary>
/// <param name="x">Input value.</param>
/// <returns>The round down to nearest integral value of the input.</returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
Expand Down