DescriptionConvert a bunch of C++ internals to degrees rather than radians
Degrees make for more "predictable" results in graphics applications
when care is taken to work as exactly as possible in the vicinity of
multiples of 45 degrees.
This provides also functions ly:length, ly:directed and ly:angle to
Scheme in order to facilitate work in degrees there. A number of
operations relevant only to complex analysis/arithmetic rather than
vector operations are removed from the Offset type in order not to
encourage their use.
Contains commits:
Remove complex{conjugate,divide,exp}, Offset::arg
They are promoting aspects of Offset not well-suited to graphics.
Let make_partial_ellipse_boxes use degrees
Change rotations to degrees rather than radians
Or replace them with something not requiring angles altogether.
Simplify polar->rectangular
Add ly:length, ly:directed, ly:angle
Those are functions working on and/or producing coordinate pairs, usually
based on angles expressed in degrees.
Add offset_directed (Real)
This converts an angle in degrees into a unit vector.
Make Offset::angle_degrees () deliver nicer angles
Multiples of 45 degrees should be returned exactly.
Patch Set 1 #
Total comments: 2
Patch Set 2 : Allow ly:directed to take a 2D magnitude #
MessagesTotal messages: 4
|