-
Notifications
You must be signed in to change notification settings - Fork 22
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
New 'Vector Fields' component #47
Comments
@andreasplesch @JordanDelcros are you able to help me with a problem? I am trying to calculate the yaw, pitch and roll rotation angles needed to rotate a vector arrow between 2 points. Using x3dom and Vector3 libraries. I have put my attempts at vector calculations up on Observable here https://beta.observablehq.com/@jamesleesaunders/vector-fields but now all confused. Any ideas? |
x3dom has a quaternion.rotateFromTo method to get the rotation,
quaternion.toMatrix to convert and a matrix4f.getEulerAngles method to
extract Euler angles.
Hope this helps, Andreas
…---on the phone---
On Sun, Jan 20, 2019, 10:53 AM James Saunders ***@***.*** wrote:
@andreasplesch <https://github.com/andreasplesch> @JordanDelcros
<https://github.com/JordanDelcros> are you able to help me with a
problem? I am trying to calculate the yaw, pitch and roll rotation angles
needed to rotate a vector arrow between 2 points.
Using x3dom and Vector3 libraries.
I have put my attempts at vector calculations up on Observable here
***@***.***/vector-fields but now all
confused.
Any ideas?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#47 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF4p61BpHRRfvgdPZBCRsws3N1vNVjclks5vFJDxgaJpZM4ZVT_e>
.
|
Thanks @andreasplesch those methods look right up my street!
|
Last few niggles:
|
Summary
Create new 'Vector Fields' d3-x3d reusable component. Arrows representing flow direction. Also known as Quiver Plot or Velocity Plot.
Detail
Vector fields have many important applications, as they can be used to represent many physical quantities: the vector at a point may represent the strength of some force (gravity, electricity, magnetism) or a velocity (wind speed or the velocity of some other fluid).
Examples
Relevant Files
/src/component/vectorFields.js
/src/chart/vectorFieldChart.js
The text was updated successfully, but these errors were encountered: