Expand description
§Hisab
حساب (Arabic: calculation, reckoning) — Higher mathematics library for the AGNOS ecosystem.
Provides typed mathematical operations — linear algebra, geometry, calculus, and numerical methods — built on glam.
§Feature flags
| Feature | Default | Description |
|---|---|---|
transforms | yes | 2D/3D transforms, projections, slerp, lerp, glam re-exports |
geo | yes | Primitives, intersections, BVH, k-d tree, quadtree, octree, spatial hash, GJK/EPA |
calc | yes | Differentiation, integration, Bezier 2D/3D, splines, easing, Gauss-Legendre |
num | yes | Root finding, LU/Cholesky/QR/SVD, FFT, optimization, ODE solvers |
autodiff | no | Forward-mode automatic differentiation (dual numbers) |
interval | no | Interval arithmetic for verified numerics |
symbolic | no | Symbolic expression tree with differentiation and simplification |
tensor | no | N-dimensional dense tensor type |
parallel | no | Rayon-powered parallel batch operations |
ai | no | Daimon/hoosh AI client (requires network deps) |
logging | no | Structured logging via tracing-subscriber |
full | — | Enables all features |
Re-exports§
pub use error::HisabError;pub use transforms::EulerOrder;pub use transforms::Transform2D;pub use transforms::Transform3D;pub use geo::Aabb;pub use geo::Bvh;pub use geo::Capsule;pub use geo::ContactConstraint;pub use geo::ContactEdge;pub use geo::ConvexDecomposition;pub use geo::ConvexHull3D;pub use geo::ConvexPolygon;pub use geo::ConvexSupport;pub use geo::ConvexSupport3D;pub use geo::Frustum;pub use geo::HalfEdge;pub use geo::HalfEdgeMesh;pub use geo::Island;pub use geo::KdTree;pub use geo::Line;pub use geo::Obb;pub use geo::Octree;pub use geo::Penetration3D;pub use geo::Plane;pub use geo::Quadtree;pub use geo::Ray;pub use geo::Rect;pub use geo::Segment;pub use geo::SpatialHash;pub use geo::Sphere;pub use geo::TriMesh;pub use geo::Triangle;pub use num::Complex;pub use num::CsrMatrix;pub use num::DenseMatrix;pub use num::EigenDecomposition;pub use num::OptResult;pub use num::Pcg32;pub use num::Svd;
Modules§
- calc
- error
- Unified error types for hisab.
- geo
- Geometric primitives and intersection tests.
- num
- Numerical methods: root finding, linear solvers, decompositions, FFT, DST/DCT, and ODE solvers.
- transforms
Structs§
- DMat3
- A 3x3 column major matrix.
- DMat4
- A 4x4 column major matrix.
- DQuat
- A quaternion representing an orientation.
- DVec2
- A 2-dimensional vector.
- DVec3
- A 3-dimensional vector.
- DVec4
- A 4-dimensional vector.
- Mat3
- A 3x3 column major matrix.
- Mat4
- A 4x4 column major matrix.
- Quat
- A quaternion representing an orientation.
- Vec2
- A 2-dimensional vector.
- Vec3
- A 3-dimensional vector.
- Vec4
- A 4-dimensional vector.
Constants§
- EPSILON_
F32 - Default tolerance for f32 comparisons.
- EPSILON_
F64 - Default tolerance for f64 comparisons.
Type Aliases§
- Result
- Convenience alias for
Result<T, HisabError>.