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

Drawing vectors with arrow-heads. #20

Open
drscotthawley opened this issue Oct 25, 2020 · 5 comments
Open

Drawing vectors with arrow-heads. #20

drscotthawley opened this issue Oct 25, 2020 · 5 comments

Comments

@drscotthawley
Copy link

drscotthawley commented Oct 25, 2020

Hi. This is really neat! I thought I'd try re-doing in @iooxa/article an RLC circuit simulator that I once wrote in Java.
Here's an image of the UI I had:
UI image.
I've been able to set up the sliders, the displayed variables and the graphs.
My question is, how do we draw vectors, i.e. lines with arrows on the ends?
Thanks. (I tried defining defs and marker but couldn't get it to work.)

PS- While we're at it: Logarithmic axes for graphs?

@drscotthawley
Copy link
Author

drscotthawley commented Oct 25, 2020

PS - I got it mostly working the way I like! Just would like the vectors to look like vectors.
Demo: https://hedges.belmont.edu/~shawley/physapplets/seriesrlc.html

@rowanc1
Copy link
Member

rowanc1 commented Oct 26, 2020

So cool that you got this working -- saw that you converted a few other things over as well! Are these used in university courses? Would love to know more!

Absolutely agree that vector heads are necessary, will leave this open!

@rowanc1 rowanc1 changed the title Drawing vectors? Drawing vectors with arrow-heads. Oct 26, 2020
@drscotthawley
Copy link
Author

drscotthawley commented Oct 26, 2020

Hey Rowan. Yes to university courses: over ~15 years I've written various interactive teaching tools but over time things like Flash & Java applets have stopped running in browsers.
This utility will be used in my Electronics & Circuit Theory course at Belmont University in Spring 2021.

Actually, that was so easy that yesterday I re-did a similar demo on Simple Harmonic Motion for my Acoustics course: https://hedges.belmont.edu/~shawley/physapplets/shm.html

I appreciate how iooxa/article allowed me to focus on the math instead of having to build all the graphics & interaction, all so that my students can focus on the graphics & interaction instead of the math! ;-)

Working on an interactive eBook next. Not sure how many JS libraries I'll need (e.g. using vis.js for 3D), but I appreciate how your "scoping" functionality allows one to keep things separate.

@rowanc1
Copy link
Member

rowanc1 commented Oct 27, 2020

I found that one in browsing through your apps pages, I really love the hiding and showing intro text and equations. I have tried to do something similar here:
https://row1.ca/probability-of-a-spill
By having a slider that changes from a 2min interactive read/graphic to an in-depth proof.

Glad you found the scoping easy, and makes sense to you!

One of the other things I am in the process of getting off the ground is iooxa.com. It aims to support these sort of interactive textbook-like environments, and also take care of some of the collaboration aspects that come with re-using, writing and getting help from other folks. We found that github was a bit too challenging to most of the people who would actually write content, learning from developing a geophysics textbook.

I would love to chat/hear more about your eBook plans if you would be up for it!
If you are up for slack: https://slack.iooxa.dev or [email protected]

@drscotthawley
Copy link
Author

Sounds great! Emailing...

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

No branches or pull requests

2 participants