Zlm
Zig linear mathemathics
Install / Use
/learn @ziglibs/ZlmREADME
zlm
Zig linear mathemathics library.
Current provides the following types:
Vec2Vec3Vec4Mat2Mat3Mat4
The library is currently built around the OpenGL coordinate system and is fully generic on the basic data type.
Example
// using `as(f32)` to specify precision of fields
const math = @import("zlm").as(f32);
/// Accelerate the given velocity `v` by `a` over `t`.
fn accelerate(v: math.Vec3, a: math.Vec3, t: f32) math.Vec3 {
return v.add(a.scale(t));
}
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
