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, eigenvalues, FFT, RK4 ODE solver
ainoDaimon/hoosh AI client (requires network deps)
loggingnoStructured logging via tracing-subscriber
fullEnables all features

Re-exports§

pub use error::HisabError;
pub use transforms::Transform2D;
pub use transforms::Transform3D;
pub use geo::Aabb;
pub use geo::Bvh;
pub use geo::ConvexPolygon;
pub use geo::ConvexSupport;
pub use geo::Frustum;
pub use geo::KdTree;
pub use geo::Line;
pub use geo::Octree;
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::Triangle;
pub use num::Complex;

Modules§

calc
Calculus: differentiation, integration, interpolation, curves.
error
Unified error types for hisab.
geo
Geometric primitives and intersection tests.
num
Numerical methods: root finding, linear solvers, decompositions, FFT, and ODE solvers.
transforms
Transforms, projections, and interpolation.

Structs§

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.

Type Aliases§

Result
Convenience alias for Result<T, HisabError>.