-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add orbiting camera mode #160
Open
jdahlstrom
wants to merge
59
commits into
dev
Choose a base branch
from
orbit-cam
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
A surface-of-revolution shape generated by rotating a polyline about an axis.
These are all surface-of-revolution objects based on Lathe.
Replace the smelly diff and scale methods with a single new method dv_dt that handles all the use cases of the removed methods, also simplifying calling code.
Also fix primitive and vertex output stats.
The endpoint should be the end of the last row, not one-past-the-last. This caused a panic if the slice contained the last row of the parent. Made slice_mut() logic identical to slice() which was already correct.
Cannot use chunks_exact(stride) because the last row has length w<=stride. rows() was already correct.
The Index impls already do, so make the get methods consistent.
* new_default -> new * new -> new_from
* Reduce duplicated code * Catch more errors * Better panic messages
1. std 2. libm 3. mm
Add Utah teapot and Stanford bunny models to the set of objects displayed.
Allow lower precision with micromath and fallback.
* Change VecN type aliases to always be in Real<N, B>, generic over B. This better matches their intended semantics as specifically Cartesian vectors. For example, SphericalVec and Vec3 are now always distinct types. * Change vecN functions to be generic over B, matching their respective VecN. This removes the need of most uses of .to(), at the expense of sometimes being unable to infer B. * Turn generic Vec4 to ProjVec4 specifically, with little need for Cartesian 4-vectors at least for now. Remove vec4 functions as unneeded.
Rotates the camera around a target point.
jdahlstrom
force-pushed
the
dev
branch
2 times, most recently
from
September 18, 2024 14:25
ec8a32d
to
3b6e745
Compare
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.
Rotates the camera around a target point.