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

Recommended Posts

This is what I've been told decades ago. In the Affinityverse a perfect circle has 360,00001°

Test yourself with 6 decimal places for degrees.

perfect-circle.jpg

------
Windows 10 | i5-8500 CPU | Intel UHD 630 Graphics | 32 GB RAM | Latest Retail and Beta versions of complete Affinity range installed

Link to comment
Share on other sites

I've read elsewhere that Affinity does not have "true" circles. Perhaps this is another aspect of that?

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1

Link to comment
Share on other sites

Welcome to the world of computer representation of rational numbers. Rounding will always take place somewhere. Here you see a 0.00000278% error. This topic of numerical representation was an active topic of discussion in computer languages, programming, and scientific calculations in my student days in the early 1970's. The answer to the problem was always, "what amount of error no longer makes a difference in the result for practical purposes?" To think of it another way, a 360 degree circle is an ideal that is approximated to any degree of precision. The more like the ideal, the more time and expense involved. A more precise measuring instrument is more expensive. Very few of us have need of a micrometer for everyday use around the house, but someone wanting to track paper thickness would certainly have one. There's nothing to see here, move along. ;)

 

Solly

JFSJ

N3MKH

Link to comment
Share on other sites

  • 1 year later...
  • Staff

This will be because all angles are represented internally as radians. We then convert them to degrees using a*180/pi.  That leads to a small amount of error in floating point precision.  The error is small enough not to matter in real terms.

 

In this example - the angle is not about the circle, but the arc start/end when presenting a pie shape.

 

As Walt also says - we use cubic bezier quadrant approximations for a circle/ellipse - so there is an element of error in the outline compared to a mathematically true circle.

SerifLabs team - Affinity Developer
  • Software engineer  -  Photographer  -  Guitarist  -  Philosopher
  • iMac 27" Retina 5K (Late 2015), 4.0GHz i7, AMD Radeon R9 M395
  • MacBook (Early 2015), 1.3GHz Core M, Intel HD 5300
  • iPad Pro 10.5", 256GB
Link to comment
Share on other sites

20 minutes ago, Ben said:

all angles are represented internally as radians

It’s been mentioned elsewhere that it would be useful to have an option for the user to work in radians instead of degrees. If that’s what you already use internally, it seems like a no-brainer to include such an option.

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

4 hours ago, Alfred said:

It’s been mentioned elsewhere that it would be useful to have an option for the user to work in radians instead of degrees. If that’s what you already use internally, it seems like a no-brainer to include such an option.

The procedural texture filter allows to choose between these UOM. Unfortunately this doesn’t help here. 

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

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.