Skip to content

Teivaz/vectry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

vectry

Simple vector math library for any purposes

======

This libraray is designed for simple vector math usage in allpication involvin 2D graphics like applications using openGL, GLES, DirectX.

Can be used fully or partially.

======

Example:


#define VECTRY_INLINE
#include "include/vectry.h"
using namespace vectry;

class Object
{
	vec2f m_position;
public:
	const vec2f& getPosition()
	{
		return m_position;
	}
	void setPosition(const vec2f& position)
	{
		m_position = position;
	}
	mat3f getTransformation()
	{
		mat3f transforamtion;
		transforamtion.SetTranslation(getPosition());
		return transforamtion;
	}
}

About

Simple vector math library for any purposes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published