Skip to content

Instantly share code, notes, and snippets.

View njelly's full-sized avatar

Nathaniel Ellingson njelly

View GitHub Profile
@njelly
njelly / ShapeMath2D.cs
Last active June 1, 2023 03:54
ShapeMath2D - A collection of static functions for performing common (and some uncommon!) geometry tests in 2D.
// MIT License
//
// Copyright (c) 2022 Nathaniel Ellingson
// https://njellingson.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
@njelly
njelly / Google Sheet to JSON Web App
Last active January 4, 2021 15:38
Google Sheet to JSON Web App
///////////////////////////////////////////////////////////////////////////////
//
// Google Sheets to JSON Web App by Nathaniel
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@njelly
njelly / Vector2IntQuadTree.cs
Last active August 4, 2020 04:07
A quadtree implementation using Unity's Vector2Int.
///////////////////////////////////////////////////////////////////////////////
//
// Vector2IntQuadTree by Tofunaut
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions: