A lightweight header-only math library for Starlet projects.
- Basic vector types:
Vec2,Vec3,Vec4 Transformstruct for position, rotation, scaleMat44x4 matrix with:- Identity, transpose, inverse
- Translation, rotation, scaling
lookAtandperspectivehelpers- Composition with
Transform
- Constants and helpers:
pi,radians(),degrees() - Starlet Project Constants
- C++20 or later
- CMake 3.20+
include(FetchContent)
FetchContent_Declare(starlet_math
GIT_REPOSITORY https://github.com/masonlet/starlet-math.git
GIT_TAG main
)
FetchContent_MakeAvailable(starlet_math)
target_link_libraries(app_name PRIVATE starlet_math)# 1. Clone starlet-math
git clone https://github.com/masonlet/starlet-math.git
cd starlet-math
# 2. Create a Build Directory and Generate Build Files
mkdir build
cd build
cmake -DBUILD_TESTS=ON ..
# 3. Build and run tests
cmake --build .
ctestMIT License — see LICENSE for details.