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 Matrix3 to use Check #4832

Merged
merged 4 commits into from
Jan 9, 2017
Merged

Conversation

austinEng
Copy link
Contributor

part of #4794

throw new DeveloperError('array is required');
}
Check.typeOf.object(value, 'value');
Check.typeOf.object(array, 'array');
Copy link
Member

Choose a reason for hiding this comment

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

This would be Check.defined(array, 'array');

Also for all other arguments below that are of type arrays.

Check.typeOf.number(index, 'index');
Check.numeric.minimum(index, 0);
Check.numeric.maximum(index, 2);
Check.typeOf.object(result, 'result');
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you reorder so that index is checked before cartesian.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@lilleyse
Copy link
Contributor

lilleyse commented Jan 9, 2017

Thanks @austinEng for you first PR!

@lilleyse lilleyse merged commit af19483 into CesiumGS:master Jan 9, 2017
@pjcozzi
Copy link
Contributor

pjcozzi commented Jan 9, 2017

Congrats @austinEng on your first pull request!

@pjcozzi
Copy link
Contributor

pjcozzi commented Jan 9, 2017

@lilleyse also please keep the tasklist in #4794 updated since these folks do not have commit access to this repo.

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.

4 participants