cglm Documentation¶
cglm is an optimized 3D math library written in C99 (compatible with C89). It is similar to the original glm library, except cglm is mainly for C.
cglm stores matrices as column-major order but in the future row-major is considered to be supported as optional.
Getting Started:
How To:
API:
- 📚 API documentation
- Array API - Inline (Default)
- 3D Affine Transforms
- 3D Affine Transform Matrix (specialized functions)
- 2D Affine Transforms
- camera
- frustum
- axis aligned bounding box (AABB)
- quaternions
- euler angles
- mat2
- mat2x3
- mat2x4
- mat3
- mat3x2
- mat3x4
- mat4
- mat4x2
- mat4x3
- vec2
- vec2 extra
- vec3
- vec3 extra
- vec4
- vec4 extra
- ivec2
- ivec3
- ivec4
- color
- plane
- Project / UnProject
- utils / helpers
- io (input / output e.g. print)
- precompiled functions (call)
- Sphere
- Curve
- Bezier
- version
- ray
- Struct API
- Call API
- SIMD API
- Array API - Inline (Default)
Options: