ternplot icon indicating copy to clipboard operation
ternplot copied to clipboard

Create inverse function for terncoords

Open alchemyst opened this issue 9 years ago • 4 comments

Terncoords converts ternary fractions to rectangular coordinates, but we need to be able to go back from those coordinates to the fractions.

alchemyst avatar Jun 30 '16 07:06 alchemyst

Hello Carl, sorry I am a little bit lost in your latest comment. Did you mean that we should produce an anti-Terncoords function to get the rectangular coordinate and turn them into three fractional value where their sum should be equal to a unit?

sha17hab avatar Jun 30 '16 15:06 sha17hab

That's exactly what I mean. terncoords takes the fractional values and gives x, y coordinates that can be plotted. There isn't a quick way right now to take the x, y coordinates back to the fractions.

alchemyst avatar Jun 30 '16 15:06 alchemyst

Sure, but is it practical since one should have the original fractional variables to be able to use Terncoords converts. What would be the use of this?

sha17hab avatar Jun 30 '16 16:06 sha17hab

For instance to enable ginput to be used, or to find the fractions for particular contours.

This message may contain unintentional errors, as it was typed on a phone

On 30 Jun 2016, at 18:01, Shahab Afshari [email protected] wrote:

Sure, but is it practical since one should have the original fractional variables to be able to use Terncoords converts. What would be the use of this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

alchemyst avatar Jun 30 '16 16:06 alchemyst