Refactor and enhance math, memory, and utilities
Refactored `sincos` usage in `quaternion` to use tuple-based returns for improved readability. Introduced a `random` struct with methods for generating random values of various types and dimensions, including ranges and directions. Added a `DynamicArray` class for dynamic resizing and manipulation of collections. Enhanced `SlotMap` with new methods for safe access and updates. Updated `uint` vector types with `NumericConvertable` attributes for better type interoperability. Removed the `MathUtilities` class and refactored `adj` and `adjInverse` methods for encapsulation. Improved memory management with `StackAllocator` and `UnsafeArray` enhancements. Added geometry utilities like `AABB`, `OBB`, `Plane`, and `SphereBounds` for 3D operations. Updated project configuration for versioning and NuGet packaging. Performed general code cleanup, improved validation, and aligned with modern C# practices.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Microsoft.CodeAnalysis;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Misaki.HighPerformance.Mathematics.CodeGen.Models
|
||||
{
|
||||
@@ -54,6 +55,12 @@ namespace Misaki.HighPerformance.Mathematics.CodeGen.Models
|
||||
get;
|
||||
}
|
||||
|
||||
public Dictionary<string, INamedTypeSymbol[]>? ConvertableTypes
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string TypeName => TypeSymbol.Name;
|
||||
public string ComponentTypeName => ComponentTypeSymbol.Name;
|
||||
public string TypeFullName => TypeSymbol.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat);
|
||||
|
||||
Reference in New Issue
Block a user