#Constructing angle, ratio, length, etc from int and float?

5 messages · Page 1 of 1 (latest)

sweet dagger
#

(Inverse of https://discord.com/channels/1054443721975922748/1238022345860321352)

Is there any way to convert a number to a quantity?

I'm imagining something along the lines of

#length(0.5, pt)
#angle(45, deg)

As it stands, those functions don't take constructors.

An example of how this would be useful: Calculating a series of angle values based on values in an array, and then converting those values to degrees to be used with e.g. cetz.

Discord

Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.

glass olive
#

?r #(2.5 * 1pt)

past egretBOT
glass olive
#

?r #(120 * 1deg)

past egretBOT