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

Added BoundingSphere.fromOrientedBoundingBox function #3165

Merged
merged 4 commits into from
Nov 5, 2015

Conversation

lilleyse
Copy link
Contributor

@lilleyse lilleyse commented Nov 4, 2015

Simple helper function to create a bounding sphere from an oriented bounding box. This will be used by point clouds on the 3d-tiles branch.

@lilleyse lilleyse force-pushed the sphere-from-oriented-box branch from b40f3d2 to 7e4450d Compare November 4, 2015 16:25
@@ -386,6 +388,23 @@ defineSuite([
expect(sphere).toEqual(expected);
});

it('fromOrientedBoundingBox', function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should have a test for both with and without a result parameter. For example, see https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Specs/Core/Matrix4Spec.js#L175

@lilleyse
Copy link
Contributor Author

lilleyse commented Nov 5, 2015

Added the extra tests.

@pjcozzi
Copy link
Contributor

pjcozzi commented Nov 5, 2015

Thanks!

pjcozzi added a commit that referenced this pull request Nov 5, 2015
…ted-box

Added BoundingSphere.fromOrientedBoundingBox function
@pjcozzi pjcozzi merged commit 00f8d98 into master Nov 5, 2015
@pjcozzi pjcozzi deleted the sphere-from-oriented-box branch November 5, 2015 15:39
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