{"repo":"polymonster/maths","free":true,"listed":false,"github":"https://github.com/polymonster/maths","clone":"git clone https://github.com/polymonster/maths.git","description":"Linear algebra library with vector swizzling, intersection tests and useful functions for games and graphics dev.","language":"C++","stars":108,"topics":["math","math-library","linear-algebra-library","swizzle","shader-swizzle","cpp","vector-swizzle","matrix","quaternion","scalar-math"],"license":null,"category":"chat-messaging","readme_excerpt":"maths A C++ maths library... you might find this useful for games and graphics dev, it has a lot of useful intersection, geometric test and conversion functions, vector swizzling, gjk implementation and other handy features. There is a Live Demo via WebAssembly and WebGL. Requirements Supported Compilers: MSVC 2017+, GCC 7.0+, Clang 6.0+, EMCC 2.0. C++11 or later is required. Tested with C++20, C++17, C++14 and C++11. Features The entire library is header only, add the maths directory to your include search path and simply include: Functions Plane Classification: point vs plane, aabb vs plane, sphere vs plane, capsule vs plane, cone vs plane . Overlaps: sphere vs sphere, sphere vs aabb, sphere vs obb, aabb vs aabb, aabb vs frustum, sphere vs frustum, sphere vs capsule, capsule vs capsule, obb vs obb, aabb vs obb, convex hull vs convex hull, gjk 2d, gjk 3d . Point Inside: point inside aabb, point inside sphere, point inside obb, point inside triangle, point inside cone, point inside convex hull, point inside poly, point inside frustum . Closest Point: closest point on aabb, closest point on line, closest point on plane, closest point on obb, closest point on sphere, closest point on ray, closest point on triangle, closest point on polygon, closest point on convex hull, closest point on cone . Point Distance: point aabb distance, point segment distance, point triangle distance, distance on line, point plane distance, plane distance, point sphere distance, point polygon distance","default_branch":null,"files":null,"tree":[],"storefront":"/r/polymonster","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/polymonster/maths/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}