Jump to content
Our response time is longer than usual currently. We're working to answer users as quickly as possible and thank you for your continued patience.

It is very confusing that formulas such as Sin do not calculate unless you put in units such as mm, pix, etc.


Recommended Posts

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

Link to comment
Share on other sites

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

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

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?

Alfred spacer.png
Affinity Designer/Photo/Publisher for Windows 1.10 • Windows 10 Home/Pro
Affinity Photo for iPad 1.10 • Designer for iPad 1.10 • iPadOS 15.6.1 (iPad Air 2)

Link to comment
Share on other sites

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

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.