Metadata-Version: 2.4
Name: smathlib
Version: 0.1.0
Summary: High-performance C++20 SIMD mathematics & physics foundation for graphics and game engines
Author: Sonari
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: Topic :: Games/Entertainment
Classifier: Topic :: Scientific/Engineering :: Mathematics
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: requires-python
Dynamic: summary

# smathlib

High-Performance C++20 SIMD Mathematics, Non-Euclidean Geometry & Physics Foundation.

## Features
- **AVX2 / SSE4.1 / ARM NEON** Hardware-accelerated Linear Algebra (`Vec3`, `Mat4`, `Quat`).
- **High-Performance Python FFI** (Process 100k+ vector operations in <1ms).
- **XPBD Physics Solver** (Extended Position Based Dynamics for cloth & constraints).
- **Signed Distance Fields (SDF)** & Raycasting.
- **Non-Euclidean Geometry** (Hyperbolic / Poincaré Ball / Spherical).

## Quick Start (Python)

```python
import smathlib as sm
import math

# Vectors
v1 = sm.Vec3(1, 0, 0)
v2 = sm.Vec3(0, 1, 0)
v3 = v1.cross(v2)
print("Cross:", v3)

# Quaternions
q = sm.Quat.from_axis_angle(sm.Vec3(0, 0, 1), math.pi * 0.5)
rotated = q.rotate(v1)
print("Rotated:", rotated)
