Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Multiply two variables or expressions #33

Open
wrnrlr opened this issue May 3, 2021 · 0 comments
Open

Multiply two variables or expressions #33

wrnrlr opened this issue May 3, 2021 · 0 comments

Comments

@wrnrlr
Copy link

wrnrlr commented May 3, 2021

I'd hoped to be able to constrain two lines to be parallel by rewriting the equation for the slope.

m1 == (p1.y - q1.y) / (p1.x - q1.x)
m2 == (p2.y - q2.y) / (p2.x - q2.x)
m1 == m2

algebra-cadabra:

(p1.y - q1.y) * (p2.x - q2.x) == (p2.y - q2.y) * (p1.x - q1.x)

Turns out I can't multiply two expression or variables, is this a fundamental restriction of kiwi or can it be extended in some way to support such things?

Kind Regards

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant