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

PerspectiveCamera: getViewBounds(), getViewSize() #777

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

Methuselah96
Copy link
Contributor

@Methuselah96 Methuselah96 mentioned this pull request Jan 23, 2024
45 tasks
@Methuselah96 Methuselah96 merged commit 44043e2 into master Jan 23, 2024
3 checks passed
@Methuselah96 Methuselah96 deleted the perspective-camera-bounds branch January 23, 2024 22:05
* Computes the width and height of the camera's viewable rectangle at a given distance along the viewing direction.
* Copies the result into the target Vector2, where x is width and y is height.
*/
getViewSize(distance: number, minTarget: Vector2, maxTarget: Vector2): void;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Methuselah96 Here it should be

getViewSize(distance: number, target: Vector2): Vector2;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks. Fixed in #800.

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.

2 participants