Posts: 1,871
Threads: 84
Joined: Jul 2011
RE: Rounding Errors in primitives?
2021-06-06, 23:16
(2021-06-06, 11:49)Lasse Deleuran Wrote: But how can we figure out if it is wrong or not?
By doing it right and comparing.
- Compute the X and Z for the given angle using sin and cos and a radius of 1.
- Round each number to 4 decimal places.
- Multiply the rounded numbers by the desired radius.