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

Cartesian3 vector projection #6093

Merged
merged 1 commit into from
Jan 5, 2018
Merged

Cartesian3 vector projection #6093

merged 1 commit into from
Jan 5, 2018

Conversation

hpinkos
Copy link
Contributor

@hpinkos hpinkos commented Jan 5, 2018

Adds Cartesian3.vectorProjection for projecting one vector onto another.

This is another function I've been using a lot lately, so I thought it would be helpful to have in core Cesium.

@cesium-concierge
Copy link

Signed CLA is on file.

@hpinkos, thanks for the pull request! Maintainers, we have a signed CLA from @hpinkos, so you can review this at any time.


I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

@hpinkos hpinkos requested a review from bagnell January 5, 2018 18:51
@bagnell
Copy link
Contributor

bagnell commented Jan 5, 2018

The test failure is unrelated. Merging.

@bagnell bagnell merged commit 939d952 into master Jan 5, 2018
@bagnell bagnell deleted the vectorProjection branch January 5, 2018 19:14
* @param {Cartesian3} result The result cartesian
* @returns {Cartesian3} The modified result parameter
*/
Cartesian3.vectorProjection = function(a, b, 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 we rename this to projectVector or projectVectors?

In general, try to use verbs for function names since they are actions.

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