Measure the distance between two named anchor points #561
Unanswered
taylorh140
asked this question in
Q&A
Replies: 1 comment 3 replies
-
To get vectors from coordinates, use something like |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to mimic obsidian/other infinite canvas lines.
I think they are bezier curves but I'm having problems with two properties:
with this i have an adjust ment where i add a control point to the left or right by a constant amount of units and it can look alright:
but it needs to be fairly large to work nicely and for short elements they tend to hop accros the endponts
for example these are suppose to be pointing down:
![image](https://private-user-images.githubusercontent.com/10996543/323004089-7c94cdc9-6d97-4c7d-ae05-a02bcf1fe263.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1Mjc4NzIsIm5iZiI6MTcyMDUyNzU3MiwicGF0aCI6Ii8xMDk5NjU0My8zMjMwMDQwODktN2M5NGNkYzktNmQ5Ny00YzdkLWFlMDUtYTAyYmNmMWZlMjYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA5VDEyMTkzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkxMDA2YzQyMDg0NjU2ZWM4YmRhN2NhNWQ5OTU4NzY3MDlmMzBkZjlhZDJkOTU4MTEwMGFiZjZlYTE2MTM3YjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GGdM-DEpNR9a_lF9kN8hTozM2VzctJyZBK_KLl8zutg)
like so:
![image](https://private-user-images.githubusercontent.com/10996543/323004170-1d9e84a1-7798-4376-99bb-d114667236ba.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1Mjc4NzIsIm5iZiI6MTcyMDUyNzU3MiwicGF0aCI6Ii8xMDk5NjU0My8zMjMwMDQxNzAtMWQ5ZTg0YTEtNzc5OC00Mzc2LTk5YmItZDExNDY2NzIzNmJhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA5VDEyMTkzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzMDkzNDU2OWRmMjBlZjA0ODk1YzYxMzhjZTFhZGU1ZjM0MDJlMDA3M2QzMTZjMmQ3NmVkMTg4Y2I4MDY5N2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Vb4so87GinNEP8bKtGv-_-VknoNqQ56L_nbwGwm2lZY)
I think maybe i could adjust the setpoints by how far the endpoints are but i dont know how to measure them in cetz.
Beta Was this translation helpful? Give feedback.
All reactions