suizenji Posted March 29, 2022 Share Posted March 29, 2022 In the Transform panel, the calculation between numbers is done as it is, but functions such as sin are not calculated unless the units are entered. I am very confused. The deformation panel will calculate the numbers, but when using functions such as Cos, Sin, etc., you have to put in the units for the calculation to work. Example1: 20 + 40 → The number 60 is entered.Good!! Example2: cos(33) → The result of the calculation does not change.Bad work Example: cos(33)mm →0.8 good...but. Since you specified units such as mm, inch, px, etc. when you created the document, it is a good idea to use those units if you did not include them when you used the function. Since mm and pix are specified in the document, it would be better to be able to calculate without putting in units. Thanks Quote Link to comment Share on other sites More sharing options...
John Rostron Posted March 29, 2022 Share Posted March 29, 2022 I would guess that what is happening is as follows: When you use pure numbers such as 20+30, you get a pure number that Affinity assumes is in the default unit. When you use a trig function, the result is an absolute number with no intrinsic unit. It needs a unit applied to make it useable. John suizenji 1 Quote Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630 Link to comment Share on other sites More sharing options...
Alfred Posted March 29, 2022 Share Posted March 29, 2022 27 minutes ago, John Rostron said: When you use pure numbers such as 20+30, you get a pure number that Affinity assumes is in the default unit. When you use a trig function, the result is an absolute number with no intrinsic unit. It needs a unit applied to make it useable. If w = 20 mm and h = w+30, then h = 50 mm. So if w = 33 mm and h = 20+cos(w), shouldn’t h = 20.84 mm? suizenji 1 Quote Alfred Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.4.1 (iPad 7th gen) Link to comment Share on other sites More sharing options...
John Rostron Posted March 29, 2022 Share Posted March 29, 2022 1 hour ago, Alfred said: If w = 20 mm and h = w+30, then h = 50 mm. So if w = 33 mm and h = 20+cos(w), shouldn’t h = 20.84 mm? Yes it should. I was exploring a possible reason why it was not. I would guess it it probably arises at a some very low level of coding. John suizenji and Alfred 2 Quote Windows 10, Affinity Photo 1.10.5 Designer 1.10.5 and Publisher 1.10.5 (mainly Photo), now ex-Adobe CC CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.