pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/mkrebser/mathlib

> GitHub - mkrebser/mathlib: simple math lib I have built over time. Contains a lot of geometry/linear algebra type math. Also has data structures for partitioning 3d space (like Octree, sphere bins) · GitHub
Skip to content

mkrebser/mathlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mathlib

Geometry and linear algebra library. This library was developed using Unity3D. A lot of the code is based on Unity API. I made this library for personal use- primarily because I liked the unity math functions but wanted access to a similar library without having to use the UnityEngine versions.

Shapes: Sphere, Box, BBox, Capsule, Convex Polygons

  • There are intersection tests & other functions for manipulating each shape.

Implemented Vector2d, Vector3d, Vector3Int, Vector2Int.

  • Inspired by Unity3D Vectors- but implemented with double & integer precision.
  • There is also a quaternion (double precision) implementation.
  • There is also a matrix4x4 struct implemented- and a transform struct which is essentially a struct implementation of Unity3D transforms.

There is also some space partitioning data structures.

  • There is an Octree & sphere bins. The sphere bins is just a big 3D array that uses spheres for object bounds. The octree uses AABB for object bounds.
  • Each structure supports intersection tests with spheres, AABB, and raycasts.

SimpleRandom: Linear congruential generator

  • Works like system.random except it is a struct- so there are no allocations.

HashGraph: A graph implementation that uses unique vertices/ (Each vertex can be hashed & have constant lookup time)

  • Implements A star search & connected component

Note* Some segments of the code are just copy/paste from other repos. Sources are directly in the code. (eg some of the quaternion and matrix manipulation code). Feel free to use my code however you want.

About

simple math lib I have built over time. Contains a lot of geometry/linear algebra type math. Also has data structures for partitioning 3d space (like Octree, sphere bins)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy