suizenji Posted March 29, 2022 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
John Rostron Posted March 29, 2022 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 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo). CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050
Alfred Posted March 29, 2022 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.5.1 (iPad 7th gen)
John Rostron Posted March 29, 2022 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 Alfred and suizenji 2 Quote Windows 11, Affinity Photo 2.4.2 Designer 2.4.2 and Publisher 2.4.2 (mainly Photo). CPU: Intel Core i5 8500 @ 3.00GHz. RAM: 32.0GB DDR4 @ 1063MHz, Graphics: 2047MB NVIDIA GeForce GTX 1050
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.