Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gilzoide/bettercmath
A -betterC compatible 3D math library for D
https://github.com/gilzoide/bettercmath
aabb affine-transformation axis-aligned-bounding-box betterc dlang easings math matrix meson vector
Last synced: 8 days ago
JSON representation
A -betterC compatible 3D math library for D
- Host: GitHub
- URL: https://github.com/gilzoide/bettercmath
- Owner: gilzoide
- License: unlicense
- Created: 2020-11-20T17:53:21.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-18T19:43:36.000Z (almost 4 years ago)
- Last Synced: 2024-11-10T15:11:46.497Z (about 2 months ago)
- Topics: aabb, affine-transformation, axis-aligned-bounding-box, betterc, dlang, easings, math, matrix, meson, vector
- Language: D
- Homepage:
- Size: 204 KB
- Stars: 11
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# bettercmath
A `-betterC` compatible 3D math library for [D](https://dlang.org/).It is available as a [DUB package](https://code.dlang.org/packages/bettercmath),
has [online documentation](https://bettercmath.dpldocs.info/)
and may be used directly as a [Meson subproject](https://mesonbuild.com/Subprojects.html)
or [wrap](https://mesonbuild.com/Wrap-dependency-system-manual.html).## Submodules
- **box**: Type and dimension generic Axis-Aligned Bounding Boxes
- **cmath**: Standard math type generic functions and constants, using D runtime ([std.math](https://dlang.org/phobos/std_math.html))
on [CTFE](https://tour.dlang.org/tour/en/gems/compile-time-function-evaluation-ctfe)
and C runtime ([core.stdc.math](https://dlang.org/phobos/core_stdc_math.html)) otherwise
- **easings**: Type generic easing functions based on
- **hexagrid2d**: 2D Hexagon grid math based on
- **matrix**: Type and dimension generic Matrix type for use in linear algebra
- **misc**: Miscelaneous math functions (angle measure transformation, type generic linear interpolation)
- **transform**: Type and dimension generic Affine Transformations backed by possibly compacted Matrices
- **valuerange**: Inclusive scalar value ranges for interpolating and remapping between ranges
- **vector**: Type and dimension generic Vector type for use in linear algebra## TODO
- Support row-major matrices
- Color submodule
- Gradient submodule