Skip to content

atParam differs significantly from expected value #335

@bacchanalia

Description

@bacchanalia

The difference between atParam on circle 1 vs trig functions can be high enough to be easily seen on reasonably sized renders.

import Data.List
import Data.Ord
import Diagrams.Prelude

c = circle 1 :: Located (Trail V2 Double)
atParamVsTrig a = norm $ (c `atParam` a) .-. (p2 (cos (a*tau), sin (a*tau)))
maxDiff = maximum $ map atParamVsTrig [0,2**(-10)..1]
main = print maxDiff -- 7.3487762815497674e-3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions