Repository navigation
Category Math and Extensions
Gustavo edited this page Oct 11, 2026
·
1 revision
Color/mesh/camera helpers and concise extensions for common C# and Unity tasks.
- Enum and Flag Utilities — Enum extensions and FlagUtil validate values and test/add/remove enum or numeric flags.
- Color and HSV Utilities — Color interpolation helpers and an HSV value type support RGB/HSV manipulation.
- CurveUtil — Evaluates cubic spline interpolation between scalar control values.
- MathUtil — Geometry intersections, random circle points and Fibonacci helpers supplement common math tasks.
- MeshUtil — Creates polygon/convex/hex meshes, welds vertices, orders points and simplifies shapes.
- Camera Framing — CameraUtil frames a GameObject or bounds for a chosen view.
- PrintSaver Screenshots — Component saves screenshots with generated identifiers and configured capture behavior.
- Dictionary Extensions — Adds update-or-insert, key/value extraction and weighted random selection helpers.
- Collection Extensions — Helpers shuffle, swap, rotate, resize, query, clone and modify arrays/lists/sets.
- Deep Clone and Equality — Generic helpers perform deep cloning and deep comparison.
- Numeric Extensions — Adds range remapping, approximate comparison and compact float formatting.
- Sorting Extensions — Provides HeapSort and Timsort over lists with configurable comparers.
- String Naming Extensions — Converts camel-case names to constants and normalizes enum identifiers.
- Task Extensions — FireAndForget observes task failure handling through a small convenience extension.
- Type and Reflection Extensions — Caches/discovers CLR types and checks constructors, attributes, type families and Unity serializability.
- Unity Extensions — Component/UI, bounds, animation, snapping, gizmo, prefab/scene and dirty-state helpers extend Unity APIs.
- Editor Asset Search Extensions — Finds nearby/config assets, searches by type/name and resolves script asset paths.
- Date and Time Extensions — Formats TimeSpan values and checks whether DateTimes share a day.
Start here · Full catalog · Common combinations
Documentation snapshot: 2026-10-11
Tags: legendarytools/category
- Architecture and State
- Asset and Content Editors
- Assets and Identity
- Async and Startup
- Audio
- Binding and Scripting
- Code and Automation Editors
- Collections and Algorithms
- Deterministic Computing
- Developer Tooling
- Editor Interface and Diagnostics
- Gameplay and Attributes
- Math and Extensions
- Persistence and Time
- ScriptableObject Architecture
- Spatial and Geometry
- UI and Navigation
- Unity Runtime Helpers