-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
adding a method to retrieve pitch, roll and heading from a quaternion #4047
Conversation
|
||
return HeadingPitchRoll; | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor, but can you remove the extra blank lines?
Can you add the following functions and unit tests for them?
For simple examples, see Cartesian2. |
'./defaultValue', | ||
'./defined', | ||
'./DeveloperError', | ||
'./freezeObject', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove freezeObject
and defineProperties
; they are not used.
@bagnell can you take a quick look at the math? |
@kaktus40 thanks again for this pull request; I think a lot of users will benefit from this new class, especially when they want to rotate a model in an intuitive way. Most of the comments were just minor style things; you can check out the Cesium Coding Guide for more details. |
For the sandCastle examples, I think I'll need this pull and my previous pull. For example in this line, I could use aircraftHeadingPitchRollQuaternion instead of headingPitchRollQuaternion. |
@pjcozzi Looks OK to me. |
I just merged #4048 so you should be able to merge in master and then make this example. Also, I just realized that it would be better for the new |
@kaktus40 sorry for the short notice, but the Cesium 1.23 release is on Friday. Do you think you could make this change in the next day? Otherwise, I have to mark the new
|
Sorry I can't work on it until next week. In paralells, I search a little use case if you have any idea? Le 29/06/2016 23:09, Patrick Cozzi a écrit : @kaktus40https://github.com/kaktus40 sorry for the short notice, but the Cesium 1.23 release is on Friday. Do you think you could make this change in the next day? Otherwise, I have to mark the new Transform functions as private to avoid a later breaking change. Thanks! Also, I just realized that it would be better for the new Transforms functions to take a HeadingPitchRoll instance instead of separate heading, pitch, and roll parameters. Can you please make that change in this pull request? — |
I added a sandCastle example in development gallery. I need a little help for this example. It uses an keypressed event listener on html document but when the example is launched, it doesn't have the focus also the event listener is useless. In order to work, you have to get the focus on the cesium container (fullscreen, focus on a checkbox used in the example or make a focus on the geocoder). Any ideas? |
That's strange, with jasmine in my navigator, I didn't have errors. |
I have some error with makeZipFile command
|
* @param {Number} [pitch=0.0] The pitch component in radians. | ||
* @param {Number} [roll=0.0] The roll component in radians. | ||
*/ | ||
var HeadingPitchRoll = function(heading, pitch, roll) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the more concise function HeadingPitchRoll
syntax here. We use to use var
to workaround a Jasmine bug that has been fixed.
Hello, sorry for my heaviness but is there any news about a new review of this pull? |
Thank you for your patience @kaktus40. We want to get better at reviewing pull requests in a more timely manner. @pjcozzi @bagnell what's the status here? This is functionality that is requested with some frequency on the forum so it would be nice to get merged in. @kaktus40 in the meantime, please merge in master when you get a chance. thanks! |
Hello @hpinkos , what do you mean by merging in master? Do you mean in my repository? |
Yes, you need to sync the master branch in your fork with our master branch. Then merge your master into your branch. Right now there are conflicts so we can't merge your branch until you're synced up. Here are some instructions for syncing a fork: https://help.github.com/articles/syncing-a-fork/ Thanks! |
Ok it's done. Conflicts only in the CHANGES.md. |
@kaktus40 sorry we haven't gotten back to you yet, we have some people out on vacation and we've been pretty busy around here lately. We have a bug bash coming up in October, and I've labeled this PR for the bug bash so we will definitely be able to review it then, if not sooner. Thanks! |
Ok no problem. |
Something like that would be a stand-alone function. I don't think area is something we would want tied into the entities layer. |
Ok I'll cancel this pull. |
This looks good to me. The development example doesn't work in Chrome for me, but it does work in Firefox. It looks like mostly whitespace issues and an update to @pjcozzi Do you want to do another review? |
@kaktus40 I'm going to finish the review for this now. For polygon area, do you need to roll a new algorithm or could you use http://turfjs.org/? |
@kaktus40 the tests pass and the Sandcastle example looks great, but the controls did not work for me in Chrome or Firefox (running Mac) even after setting focus to the canvas or running fullscreen. Do they work for you? Also, would you be able to update CHANGES.md (just move your changes to the 1.27 section) and merge in master? |
I didn't use turf for calculating the area of a polygon. I used the algorithms defined here. I wrote the most precise and algorithm and the approximate algorithm. |
Sorry, I'm not following. Do the keyboard options work for you? If not, perhaps you could replace them with buttons like other Sandcastle examples or look at the Camera Tutorial example that uses key input.
Thanks. Can you please also merge |
I changed the key event in the example and it's now ok for me in chromium. I just merge changes.md |
Thanks again @kaktus40 for this nice contribution and working with us on the review. I'm going to do a few tweaks/fixes to the Sandcastle example and will open a separate PR in a few minutes. |
@hpinkos can you please update any forum threads if folks were asking for this? |
No description provided.