Skip to content

A simple header-only, single-file spline toolbox library for C++

License

Notifications You must be signed in to change notification settings

olbender/splinetoolbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

splinetoolbox: a simple header-only, single-file spline toolbox library for C++

License: MIT

splinetoolbox is a small and efficient library written in modern C++ library to provide functionality for working with splines

splinetoolbox is available as single-file, header-only library. Insert splinetoolbox.hpp into your project, #include "splinetoolbox.hpp", and compile your project with a modern C++ compiler (C++11 or newer).

Table of Contents

Features

  • Written in highly portable and high quality C++11
  • Available as header-only, single-file distribution. Insert splinetoolbox.hpp into your project, #include "splinetoolbox.hpp", and compile your project with a modern C++ compiler (C++11 or newer)
  • Catmull-Rom spline: double curve = splinetoolbox::catmullrom(p0, p1, p2, p3, t); where p[0–3] are the control points (can be x, y, z or anything else), and t is the distance between p1 (t = 0.0) and p2 (t = 1.0), assuming that the distance betwwen all four points are the same. p0 and p3 are virtual points for this single segment, but can be part of a larger spline.

Dependencies

No dependencies! All you need is a C++11-compliant compiler as the project ships the following dependencies as part of the source distribution:

Installation

Installation as single-file, header-only library

splinetoolbox is provided as header-only, single-file library as well. Insert splinetoolbox.hpp into your project, #include "splinetoolbox.hpp", and compile your project with a modern C++ compiler (C++11 or newer)

License

  • This project is released under the terms of the MIT License - License: MIT

About

A simple header-only, single-file spline toolbox library for C++

Resources

License

Stars

Watchers

Forks

Packages

No packages published