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

update Rectangle to use Check #4839

Merged
merged 2 commits into from
Jan 10, 2017
Merged

Conversation

austinEng
Copy link
Contributor

part of #4794

if (!defined(cartographics)) {
throw new DeveloperError('cartographics is required.');
}
Check.typeOf.object(cartographics, 'cartographics');
Copy link
Contributor

Choose a reason for hiding this comment

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

cartographics is an array

if (!defined(cartesians)) {
throw new DeveloperError('cartesians is required.');
}
Check.typeOf.object(cartesians, 'cartesians');
Copy link
Contributor

Choose a reason for hiding this comment

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

Same for cartesians.


if (north < -CesiumMath.PI_OVER_TWO || north > CesiumMath.PI_OVER_TWO) {
throw new DeveloperError('north must be in the interval [-Pi/2, Pi/2].');
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this line of whitespace.

@austinEng
Copy link
Contributor Author

Updated

@lilleyse
Copy link
Contributor

Thanks @austinEng, looks good.

@lilleyse lilleyse merged commit 2f71f73 into CesiumGS:master Jan 10, 2017
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