-
Notifications
You must be signed in to change notification settings - Fork 387
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
Length Per Angle Unit (e.g. mm/rev, m/degree) #1519
Comments
Given the frequency of requests for UnitPerUnit requests, I believe an operand struct of sorts would help us be more flexible overall. Just not sure of the desire to implement, and I know we’ve debated similar things in the past. Just returning a bit after some absence so forgive me. @angularsen? |
Hi, yes I think I agree. There are just too many X-per-Y units out there to add them all, and I kind of think this falls in the bucket of too domain specific, sorry. UnitsNet is all about static typing, and we currently don't have a good way to accommodate everyone. I updated the wiki with a note on X-per-Y units: Some options we have discussed:
Some options you can consider:
P.S: Welcome back @tmilnthorp! 😃 |
@tmilnthorp Welcome back! FYI I've been doing a lot of work in the direction of Anyways, one PR that you would probably find interesting is #1507 - I'm relying heavily on the |
@angularsen Thanks for the comment. I've been reading through the custom units page and the sample quantity does not conform to the up-to-date
|
@CalebBe-2253 Thanks for pointing it out, there are many changes to |
Is your feature request related to a problem? Please describe.
I need to represent the ratio between a length and an angle in my project. As far as I am aware there is no way to represent this in UnitsNet.
This quantity is used frequently in the manufacturing industry, and is often used to represent the depth drilled per revolution of a cutter. It can also be used to represent arc lengths, which is generally useful in many forms of mathematics.
Describe the solution you'd like
I would like a new quantity type "LengthPerAngle".
A reasonable minimum set of units would be something like the following, but of course more units are possible:
Describe alternatives you've considered
As far as I am aware, the only alternative is to manage the units and conversions manually.
The text was updated successfully, but these errors were encountered: