Vec arg min max - #335
Draft
jdahlstrom wants to merge 46 commits into
Draft
Vec arg min max#335jdahlstrom wants to merge 46 commits into
jdahlstrom wants to merge 46 commits into
Conversation
Gives an alterative way to construct a Batch, no good reason to keep them private.
Moves a point towards another point by an offset without overshooting.
These are needed often enough that adding them manually is a pain.
Implements airplane-like control of the pitch (elevation), yaw (bearing), and roll (bank) angles of the camera. These angles are also known to as Tait–Bryan angles.
* Color::clamp(): like in Vec and Point * VecN::normalize_or_zero(): don't panic, return zero * MatN::origin(): return the translation vector as a point * Batch::append(): append the geometry of a batch to another * Tri::centroid(): return the center point of a triangle
Supports linear, radial, and conical gradients with arbitrary color maps.
Implements the "slab method" described in https://en.wikipedia.org/wiki/Slab_method
The core module started getting really crowded. Added a glob re-export to keep all existing paths valid.
Add proper unit tests for linear and translate/origin
* Implement fallback sqrt, finally * Fix negative divisor in fallback rem_euclid * Fix negative zero in fallback floor and rem_euclid * Add exp and log2 to mm feature * Improve mm sqrt and inv_sqrt precision * Improve test coverage and consistency
* Triangle filling * Triangle clipping * Ray-bbox/sphere intersection
Revamp tests to ensure that the methods are approximate inverses.
jdahlstrom
marked this pull request as draft
December 9, 2025 12:13
jdahlstrom
force-pushed
the
dev
branch
2 times, most recently
from
December 15, 2025 14:07
024a425 to
cce0d4f
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.