Skip to main content

Crate hisab

Crate hisab 

Source
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

FeatureDefaultDescription
transformsyes2D/3D transforms, projections, slerp, lerp, glam re-exports
geoyesPrimitives, intersections, BVH, k-d tree, quadtree, octree, spatial hash, GJK/EPA
calcyesDifferentiation, integration, Bezier 2D/3D, splines, easing, Gauss-Legendre
numyesRoot finding, LU/Cholesky/QR/SVD, FFT, optimization, ODE solvers
autodiffnoForward-mode automatic differentiation (dual numbers)
intervalnoInterval arithmetic for verified numerics
symbolicnoSymbolic expression tree with differentiation and simplification
tensornoN-dimensional dense tensor type
parallelnoRayon-powered parallel batch operations
ainoDaimon/hoosh AI client (requires network deps)
loggingnoStructured logging via tracing-subscriber
fullEnables 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>.