Leo Sulzbacher da2539692a
All checks were successful
CI / build (pull_request) Successful in 15s
CI / build (push) Successful in 15s
chore: remove unity and fetch instead
2026-03-16 15:04:03 +01:00
2026-03-14 00:27:35 +01:00
2026-03-15 02:17:57 +01:00

Logo

curtle

curtle is a simple open source cross platform math library for C.

Roadmap

The goal of curtle is to provide an easy to use and easy to integrate math library. If you are interested in specific features please reach out to me!

  • add much math tooling
  • provide easy install via package managers etc.

Features

  • Basic operations on 2D Vectors
  • Basic operations on 3D Vectors

Installation

Clone the repository:

git clone https://git.lowearthorbit.de/lowearthorbit/curtle.git
cd curtle

You can build and install the library using cmake:

mkdir build && cd build
cmake ..
sudo cmake --install .

Usage/Examples

Once installed, you can use curtle with CMake:

find_package(curtle REQUIRED)

add_executable(myapp main.c)
target_link_libraries(myapp PRIVATE curtle::curtle)

Example in C

#include "curtle/curtle.h"

int main(void) {
    struct vec2 a = { 1.0, 1.0 };
    printf("%f", vec2_len(a)); // Prints sqrt(2)
}

Authors

Description
Simple Open Source Math Lib for C
Readme AGPL-3.0 115 KiB
Languages
C 71.2%
CMake 28.8%