Skip to content

wenjunli312-code/common-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

common-utils

A C++ utility library for the OpenBuilder demo project, providing 3D math primitives, logging, and JSON-based configuration.

Features

  • Vector3 — 3D vector with arithmetic operators, dot/cross product, normalize, magnitude
  • Matrix4x4 — 4×4 transformation matrix with identity, rotation, translation, scale, multiply, inverse
  • Loggerspdlog-based logger with CU_LOG_INFO/WARN/ERROR/DEBUG macros
  • Confignlohmann_json-based config loader with dot-notation key access

Dependencies

Install via Homebrew:

brew install spdlog nlohmann-json

Build

cmake -S . -B build -G Ninja
cmake --build build

Test

cd build && ctest --output-on-failure

Install

cmake --install build --prefix /usr/local

Headers are installed to include/common_utils/.

About

OpenBuilder demo - see README

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors