[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get X/Y-extent of a bezier-curve?
From: |
Thomas Morley |
Subject: |
Re: How to get X/Y-extent of a bezier-curve? |
Date: |
Fri, 9 Oct 2015 01:56:44 +0200 |
2015-10-07 14:08 GMT+02:00 Thomas Morley <address@hidden>:
> The code in my initial mail uses coord-rotate (not
> ly:stencil-rotate-absolute as in Jans suggestion)
> What do you think about this method?
>
> Ofcourse it was heavily simplified, maybe best to put up a patch to
> have the full code for more detailed discussion.
I have to postpone uploading the patch, there are some glitches ...
And one thing which has driven me crazy, before I found the culprit:
`coord-rotate' has a problem which can be demonstrated with:
(display (coord-rotate '(10 . 0) (/ PI 2)))
Expected: (0 . 10)
Actually: (6.12323399573677e-16 . 10.0)
What's the best method to get the zero?
Using simple `round' will not work, because I don't want to get
integers for other fractions of PI.
And I don't know how to identify such a value.
Simply ignoring looks not like an option, I had examples where
rounding errors cumulated up to visible changes in the final pdf.
Cheers,
Harm
- How to get X/Y-extent of a bezier-curve?, Thomas Morley, 2015/10/08
- Re: How to get X/Y-extent of a bezier-curve?, David Kastrup, 2015/10/08
- Re: How to get X/Y-extent of a bezier-curve?, Thomas Morley, 2015/10/08
- Re: How to get X/Y-extent of a bezier-curve?, David Kastrup, 2015/10/08
- Re: How to get X/Y-extent of a bezier-curve?, Thomas Morley, 2015/10/08
- Re: How to get X/Y-extent of a bezier-curve?, David Kastrup, 2015/10/08
- Re: How to get X/Y-extent of a bezier-curve?,
Thomas Morley <=
- Re: How to get X/Y-extent of a bezier-curve?, Ed Gordijn, 2015/10/09
- Re: How to get X/Y-extent of a bezier-curve?, David Kastrup, 2015/10/09
- Re: How to get X/Y-extent of a bezier-curve?, Thomas Morley, 2015/10/09
- Re: How to get X/Y-extent of a bezier-curve?, David Kastrup, 2015/10/09
- Re: How to get X/Y-extent of a bezier-curve?, BB, 2015/10/08
- Re: How to get X/Y-extent of a bezier-curve?, Thomas Morley, 2015/10/08
Re: How to get X/Y-extent of a bezier-curve?, BB, 2015/10/08