Math3d
A lua math lib for linear algebra (matrix and vector)
Install / Use
/learn @cloudwu/Math3dREADME
Math3D
A fast C/Lua library for linear algebra topics.
Installation
git clone https://github.com/cloudwu/math3d.git
make
Basic Usage
local math3d = require "math3d"
-- Vectors
local vec = math3d.vector(1, 2, 3) -- Create a 3D vector
local len = math3d.length(vec) -- Get vector length
local norm = math3d.normalize(vec) -- Normalize vector
-- Matrices and Transforms
local mat = math3d.matrix() -- Create identity matrix
local transformed = math3d.transform(mat, vec)
Features
- Vector/matrix/quaternion operations
- Transform and projection matrices
- Ray casting and intersection testing
- Frustum culling and AABB calculations
- Memory management with reference counting
Related Skills
node-connect
341.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate 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
341.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
