Skip to content
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

Revamped, more flexible initialization code #19

Merged
merged 2 commits into from
May 26, 2023
Merged

Conversation

Plonq
Copy link
Owner

@Plonq Plonq commented May 26, 2023

This revamps how we initialize. Use camera position to calculate initial alpha, beta, and radius, if they aren't set. If they are, override camera's position instead.

This also removes the (actually broken, I realised) constructor method from_translation_and_focus that creates an instance from a transform, since it is now redundant.

This includes some other minor improvements to documentation and various small cleanup things.

Thanks to #4 for the idea of this change.

Plonq added 2 commits May 26, 2023 19:16
This revamps how we initialize. Use camera position to
calculate initial alpha, beta, and radius, if they
aren't set. If they are, override camera's position
instead.

This also removes the (actually broken) constructor
method that created an instance from a transform, since
it is now redundant.
@Plonq Plonq changed the title Radius flexibility Revamped, more flexible initialization code May 26, 2023
@Plonq Plonq merged commit 25fdce8 into master May 26, 2023
@Plonq Plonq deleted the radius-flexibility branch May 26, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant