Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4900)

Issue 269530043: modify coord-rotate to get exact values for (sin PI) etc (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 6 months ago by thomasmorley651
Modified:
8 years, 5 months ago
Reviewers:
benko.pal, dak, lemzwerg, wl
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

modify coord-rotate to get exact values for (sin PI) etc issue 4640 Done by switching to appropiate values for the angle and/or switching sin to cos and vice versa

Patch Set 1 #

Patch Set 2 : no need for code-duplications, increasing readability of cyclic-base-value #

Patch Set 3 : more clean up #

Total comments: 3

Patch Set 4 : adressing David's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -12 lines) Patch
M scm/lily-library.scm View 1 2 3 2 chunks +29 lines, -12 lines 0 comments Download

Messages

Total messages: 23
thomasmorley651
please review
8 years, 6 months ago (2015-10-19 23:15:04 UTC) #1
dak
I'm not really enthused about this approach even though it originates from a proposal of ...
8 years, 6 months ago (2015-10-20 14:25:21 UTC) #2
thomasmorley651
Let me split my reply into two. This one about the current patch and how ...
8 years, 6 months ago (2015-10-20 21:55:00 UTC) #3
thomasmorley651
This oe is about radians vs degrees On 2015/10/20 14:25:21, dak wrote: > Fundamentally, we ...
8 years, 6 months ago (2015-10-20 22:10:50 UTC) #4
thomasmorley651
no need for code-duplications, increasing readability of cyclic-base-value
8 years, 6 months ago (2015-10-20 22:54:17 UTC) #5
thomasmorley651
On 2015/10/20 22:54:17, thomasmorley651 wrote: > no need for code-duplications, increasing readability of cyclic-base-value patch ...
8 years, 6 months ago (2015-10-20 22:57:49 UTC) #6
thomasmorley651
more clean up
8 years, 6 months ago (2015-10-20 23:00:47 UTC) #7
thomasmorley651
https://codereview.appspot.com/269530043/diff/40001/scm/lily-library.scm File scm/lily-library.scm (right): https://codereview.appspot.com/269530043/diff/40001/scm/lily-library.scm#newcode751 scm/lily-library.scm:751: (cyclic-base-value (+ value cycle) cycle)) what are those red ...
8 years, 6 months ago (2015-10-20 23:06:58 UTC) #8
dak
https://codereview.appspot.com/269530043/diff/40001/scm/lily-library.scm File scm/lily-library.scm (right): https://codereview.appspot.com/269530043/diff/40001/scm/lily-library.scm#newcode721 scm/lily-library.scm:721: (moved-angle (- angle (/ (* quadrant PI) 2))) Ok, ...
8 years, 6 months ago (2015-10-21 09:32:07 UTC) #9
thomasmorley651
adressing David's comment
8 years, 6 months ago (2015-10-25 13:23:38 UTC) #10
thomasmorley651
On 2015/10/21 09:32:07, dak wrote: > https://codereview.appspot.com/269530043/diff/40001/scm/lily-library.scm > File scm/lily-library.scm (right): > > https://codereview.appspot.com/269530043/diff/40001/scm/lily-library.scm#newcode721 > ...
8 years, 6 months ago (2015-10-25 13:27:38 UTC) #11
benko.pal
sorry to chime in that late, but: am I right that the problem is that ...
8 years, 5 months ago (2015-10-30 13:20:35 UTC) #12
dak
On 2015/10/30 13:20:35, benko.pal wrote: > sorry to chime in that late, but: > am ...
8 years, 5 months ago (2015-10-30 13:46:18 UTC) #13
benko.pal
2015-10-30 14:46 GMT+01:00 <dak@gnu.org>: > On 2015/10/30 13:20:35, benko.pal wrote: >> >> sorry to chime ...
8 years, 5 months ago (2015-10-30 15:07:42 UTC) #14
dak
On 2015/10/30 15:07:42, benko.pal wrote: > 2015-10-30 14:46 GMT+01:00 <mailto:dak@gnu.org>: > > I really think ...
8 years, 5 months ago (2015-10-30 15:32:45 UTC) #15
wl_gnu.org
> I'd argue for creating functions sind, cosd, angle in analogy to > METAFONT's functions. ...
8 years, 5 months ago (2015-10-30 19:54:55 UTC) #16
dak
Werner LEMBERG <wl@gnu.org> writes: >> I'd argue for creating functions sind, cosd, angle in analogy ...
8 years, 5 months ago (2015-10-30 20:03:23 UTC) #17
benko.pal
> And PostScript (and PDF and METAFONT) _do_ represent angles in degrees. > So it's ...
8 years, 5 months ago (2015-10-30 21:46:55 UTC) #18
thomasmorley651
On 2015/10/30 21:46:55, benko.pal wrote: > > And PostScript (and PDF and METAFONT) _do_ represent ...
8 years, 5 months ago (2015-10-30 22:59:54 UTC) #19
lemzwerg
+1
8 years, 5 months ago (2015-10-31 05:27:58 UTC) #20
wl_gnu.org
> Maybe we should convert all our stencil stuff into native Pango? Sounds sensible. However, ...
8 years, 5 months ago (2015-10-31 05:33:44 UTC) #21
dak
On 2015/10/30 22:59:54, thomasmorley651 wrote: > On 2015/10/30 21:46:55, benko.pal wrote: > > > And ...
8 years, 5 months ago (2015-10-31 11:51:11 UTC) #22
benko.pal
8 years, 5 months ago (2015-10-31 18:15:32 UTC) #23
> Just back home, noticing the discussion here.
>
> Current patch tries to solve (or better: workaround) the problem in
> guile.
> I have some other pending patches _needing_ exact values from
> coord-rotate.
> I'd suggest to push it as is (unless some serious defect would be
> detected) after countdown. So that I can go ahead with the follow up
> stuff.
>
> Opinions?

Fine with me.

> Nevertheless, I'd love to work with degrees, rather than radians.
> Though, I can't help implementing it as soon as C++ etc is involved.

I may help with c++.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b