Files
Misaki.HighPerformance/Misaki.HighPerformance.Mathematics/README.md
Misaki 69b054e81d feat(lowlevel): add VirtualStack, update allocators, docs
Introduce VirtualStack allocator, refactor memory management to use virtual memory stacks, and update documentation.

Added VirtualStack as a new stack allocator using virtual memory, replaced Stack with VirtualStack in allocation manager and related APIs, and updated TempJobAllocator to use VirtualArena. Introduced AllocationManagerInitOpts for allocator configuration. Replaced ENABLE_COLLECTION_CHECKS with ENABLE_SAFETY_CHECKS for safety checks. Removed Result.cs and updated project files and examples. Added comprehensive README files for all major packages and improved root documentation.

BREAKING CHANGE: Stack allocator replaced by VirtualStack; TempJobAllocator and AllocationManager initialization signatures changed; Result types removed.
2026-03-19 15:38:23 +09:00

58 lines
1.3 KiB
Markdown

# Misaki.HighPerformance.Mathematics
Math helpers, geometry primitives, numeric types, and SIMD-friendly utilities for performance-sensitive C# code.
This package focuses on fast scalar and vector math while keeping the API surface practical for game, simulation, rendering, and systems work.
## What it includes
- common math constants and helpers
- custom numeric types
- quaternion and random helpers
- geometry primitives
- SIMD-oriented vector utilities
- generated vector extensions and codegen-backed math support
## Highlights
- constants exposed for float and double workflows
- `System.Runtime.Intrinsics`-based helper code
- geometry types for bounds and spatial calculations
- designed to support vectorized and low-overhead numerical code
## Main types
- `math`
- `quaternion`
- `random`
- `svd`
- `float`
- `double`
- `int`
- `uint`
- `bool`
- `AABB`
- `OBB`
- `Plane`
- `SphereBounds`
## Example
```csharp
using Misaki.HighPerformance.Mathematics;
float radians = math.radians(90f);
float degrees = math.degrees(radians);
float tau = math.TAU;
```
## Package reference
```bash
dotnet add package Misaki.HighPerformance.Mathematics
```
## Notes
This project targets `net10.0`, enables unsafe code, and uses generated source for parts of its vector API surface.