MathGeoLib | linear algebra and geometry manipulation | Graphics library
kandi X-RAY | MathGeoLib Summary
kandi X-RAY | MathGeoLib Summary
A C++ library for linear algebra and geometry manipulation for computer graphics. This repository contains an implementation of my 2015 paper "An Exact Algorithm for Finding Minimum Oriented Bounding Boxes". See for the full text, and for a live test build.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of MathGeoLib
MathGeoLib Key Features
MathGeoLib Examples and Code Snippets
Community Discussions
Trending Discussions on MathGeoLib
QUESTION
I'm trying to implement AABBs/OOBBs with MathGeoLib since the ease to operate with BBs (and because I wanted to test some things with that library).
The problem is that the engine's objects transformations are based on glm since we started with glm (and they work properly) but when it comes to transform the OOBBs according to an object, it doesn't work very well.
What I basically do is to pass to a function the game object's translation, orientation and scale (I tried to pass a global matrix but it doesn't work, it seems to 'add' the transformation instead of setting it, and I can't access the oobb's matrix). That function does the next:
...ANSWER
Answered 2019-Dec-11 at 21:57I still been looking on that but then some friend made me look into another direction, so I finally solved it (or better said: I "worked-around it") by storing an initial object's AABB and passing to the mentioned function the game object's global matrix. Then, inside the function, I used another MathGeoLib function to transform the OOBB.
That function finally looks like:
QUESTION
I am trying to build a DLL with C exports for the MathGeoLib library to be consumed from C#.
The code I've written so far:
...ANSWER
Answered 2019-Jan-06 at 22:32The line #include
is required for use of std::max
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install MathGeoLib
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page