Unity.Mathematics

The C# math library used in Unity providing vector types and math functions with a shader like syntax

OTHER License

Stars
1.4K
Committers
32

Bot releases are hidden (Show)

Unity.Mathematics - 1.2.5 Latest Release

Published by unpacklo almost 3 years ago

[1.2.5] - 2021-11-01

Fixed

  • Fixed property drawing when manually drawing a property that was hidden with [HideInInspector].
Unity.Mathematics - 1.2.4

Published by unpacklo about 3 years ago

Added

  • Added [Il2CppEagerStaticClassConstruction] to Unity.Mathematics types to run static constructors at startup. This improves IL2CPP performance slightly for types that have static constructors.

Changed

  • License file updated to satisfy Unity's package validation tests.
  • Changed noise documentation in comments to xmldoc comments.

Deprecated

Removed

Fixed

  • Fixed Equals(object) override which did not check type before casting. This could cause exceptions to be thrown when the object did not match the expected type.
  • Fixed incorrect math.tzcnt documentation which mentioned leading zero counts instead of trailing zero counts.
  • Fixed float2x2.Rotate documentation to mention radians instead of degrees.
  • Fixed documentation for methods and properties that were previously undocumented.
Unity.Mathematics - Mathematics 1.2.2

Published by bmcnett about 3 years ago

Conforms to documentation standard, without introducing new APIs

Unity.Mathematics - 1.2.1

Published by fabriziounity about 4 years ago

  • Added [MethodImpl(MethodImplOptions.AggressiveInlining)] to many static functions to improve IL2CPP performance.
  • Added compress() that accepts a float4 and uint4.
  • Added math.project() and math.projectsafe() for vector projection.
  • Added math.EPSILON, math.INFINITY, math.NAN and their double counterparts.
  • Added [Serializable] to RigidTransform.
  • Added math.ceillog2().
  • Added math.floorlog2().
  • Added math.down(), math.forward(), etc for Cartesian coordinate axes that match UnityEngine Vector3 equivalents.
  • Added math.ispow2().
  • Added half.MinValueAsHalf and half.MaxValueAsHalf to avoid having to explicitly convert from float.
  • Added a float3x3 constructor which takes a float4x4 as input.
  • Added [Serializable] to half types.
  • Added some performance tests which can be run from the Unity test project.
  • Added Random.CreateFromIndex() to assist in creating Random instances from loop indices.
  • Fixed documentation bug where quaternion.RotateX/Y/Z referred to a float4x4 instead of quaternion.
  • Fixed code generation bugs which could cause Windows and Mac to generate different test code.
  • Fixed some test asserts which used NaNs and signed zeros which failed in IL2CPP builds.
  • Updated documentation for math.countbits() to include equivalent names on Intel and ARM architectures to aid in discoverability.
  • Fixed warnings for meta files existing even though the files they represent did not exist.
Unity.Mathematics - 1.1.0

Published by fabriziounity over 5 years ago

Release stable package

Unity.Mathematics - 1.1.0-preview.1

Published by fabriziounity over 5 years ago

  • Add new math.bitmask to return a bit mask from a bool4
Unity.Mathematics -

Published by fabriziounity over 5 years ago

Unity.Mathematics - 1.0.0-preview.1

Published by fabriziounity over 5 years ago

  • Fixed bug where modifications on prefabs could not be reverted for vector properties when using context menu in Inspector.

  • Fixed structure of the package for internal validation

Unity.Mathematics - Test

Published by fabriziounity over 5 years ago

This release will not publish a package

Unity.Mathematics - 0.0.12-preview.20

Published by fabriziounity almost 6 years ago

  • Improve test coverage
  • Improve documentation
  • Vectorized implementation of float3x3 inverse
  • Fixed bugs in PostNormalizedVectorDrawer
    • Fixed exception when drawing control without having called GetPropertyHeight first
    • Apply normalization twice to fix possible precision error (fixes issue where value might be normalized with magnitude slightly less than 1)
    • Fixed bug where stale post-normalized values were applied to property when it was edited from another context (fixes issue where systems could not modify an entity's rotation while it was inspected)
  • Misc bug fixes
Unity.Mathematics - 0.0.12-preview.19

Published by runestubbe about 6 years ago

Property Drawer Refinements and NaN fix for LookRotationSafe

Unity.Mathematics -

Published by fabriziounity about 6 years ago

Unity.Mathematics -

Published by fabriziounity about 6 years ago

Unity.Mathematics -

Published by fabriziounity about 6 years ago

Unity.Mathematics -

Published by fabriziounity over 6 years ago

Unity.Mathematics -

Published by fabriziounity over 6 years ago

Unity.Mathematics -

Published by fabriziounity over 6 years ago

Unity.Mathematics -

Published by fabriziounity over 6 years ago