Jump to content
You must now use your email address to sign in [click for more info] ×

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 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

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...
×
×
  • Create New...

Important Information

Terms of Use | 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.