Skip to content

DropSoftCommunity/dropMath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dropMath

dropMath is a simple single header math library intended to be used in games.

⭐ We are looking for more developers. Feel free to contribute!

CircleCI License: GPL v3 CPP


Table of Contents


About

dropMath is a single header C++ math library with a primary focus on ease of use.

The main target audience for this library are game developers who want to have a modern C++ interface for the math library they are using.

Installation

To install and use dropMath you only need to include the header (header/dropMath) in this repository.

Installation

Download the header

In your project directory run:

wget https://raw.githubusercontent.com/DropSoftCommunity/dropMath/main/header/dropMath.hpp

You should now have the header file dropMath.hpp in your project directory.

Use the dropMath header

You should now be able to include the header from the same directory in your source files like this:

#include "dropMath.cpp" //include dropMath

int main(){
	/*Drop Math can now be used.
	  As an example I just created a Vector3 here
	*/
	drop::math::Vector3 vec{ 1.f, 2.f, 3.f };

	//...
	return 0;
}

Examples

BezierExample

You can find some example usage of the library in the examples directory of this repository.

We do also have a YouTube Playlist with usage examples: ExamplePlaylist

Documentation

This still needs to be done...

Contact

Discord