Commit Graph

27 Commits

Author SHA1 Message Date
Quentin
27a0935311 [Fix] Patched colors 2020-06-20 19:46:47 +02:00
Neven Sajko
dd6a729f65 Better usage of some floating point constants 2020-04-09 13:58:56 +02:00
Neven Sajko
c92b770112 Performance fixes relating to floating point constants
This replaces unnecessary double-precision soft-float operations with
single-precision floating-point operations, mainly by casting.

In a couple places I also replace a function call with a constant.
2020-04-09 13:58:56 +02:00
Émilie Feral
e6516ae0e7 [apps/calculation] Fix typo 2020-04-03 10:39:05 +02:00
Émilie Feral
bc8dc0c59c [apps] Use drawSegment when drawing lines instead of drawCurve or
drawCartesianCurve
2020-04-01 10:18:08 +02:00
Émilie Feral
aaf71328ba [apps/shared] CurveView: resolve name conflict -
drawHorizontalOrVerticalSegment & drawSegment -
2020-04-01 10:18:08 +02:00
Romain Goyet
2bf83c43a8 [apps/shared] Factorize CurveView::label
There was a lot of code duplication.
I removed the initialization of xLabel{} and yLabels{} because those are
scratch buffers that shouldn't be accessed before being written to
anyway.
2020-03-11 09:51:33 +01:00
Émilie Feral
d61336936e [apps/shared] Create a class Dots to share dots masks between CurveView
and RoundCursorView. Use the same dot for illustrations of additional
results in Calculation app and Function app
2020-02-12 15:13:21 +01:00
Émilie Feral
404c0945f9 [apps/calculation] additional_outputs: ComplexGraphView: simplify
computation of ellipsis equation (avoid computational errors for real =
-6 and imaginary = 1E-8 for instance)
2020-02-12 15:13:21 +01:00
Émilie Feral
8e407bd01e [apps/calculation] additional_outputs: fix assertion which checks that
both real and imaginary are well defined in ComplexGraphView
2020-02-12 15:13:21 +01:00
Émilie Feral
71a968ec05 [apps/calculation] Clean Unicode character treated as a whitespace 2020-02-12 15:13:21 +01:00
Émilie Feral
2b18f585d0 [poincare] additionalInformationType returns "Complex" only when both
real and imaginary parts are defined (not NAN or INFINITY)
2020-02-12 15:13:21 +01:00
Émilie Feral
2c55e0d6d9 [apps/calculation] additional_outputs: factorize flat ellipsis handling 2020-02-12 15:13:20 +01:00
Émilie Feral
2dbd840c00 [apps/calculation] additional_outputs: fix flat ellipsis for pure
imaginary in ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
e382d8f15e [apps/calculation] additional_outputs: improve labels layout in
ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
340bbb5644 [apps/calculation] additional_outputs: fix ellipsis equation in
ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
e13cba5a90 [apps/calculation] additional_outputs: flat ellipsis to reprensent the
angle in ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
88c3f609e8 [apps/calculation] additional_outputs: improve comments of
ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
aa6d328bac [apps/calculation] additional_outputs: improve label positioning in
ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
427a3d3051 [apps/calculation] additional_outputs: draw the principal angle on
ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
7cd6d12730 [apps/calculation] additional_outputs; change position of absolute value
label in ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
61d0161e74 [apps/calculation] additional_outputs: add labels to ComplexGraphView 2020-02-12 15:13:20 +01:00
Émilie Feral
8175df9abd [apps/calculation] additional_outputs: improve drawRect of
ComplexGraphView
2020-02-12 15:13:20 +01:00
Émilie Feral
dfd4811136 [apps/shared] CurveView: change API to expose 'drawLabel' and
'drawLabelsAndGraduations'
2020-02-12 15:13:20 +01:00
Émilie Feral
b47ded4074 [apps/calculation] Add a parameter in Shared::CurveView to choose the
curve thickness
2020-02-12 15:13:20 +01:00
Émilie Feral
83a29a822b [calculation] Improve ComplexListController 2020-02-12 15:13:19 +01:00
Émilie Feral
2ebbe5ae25 [calculation] WIP: first version of ComplexListController 2020-02-12 15:13:18 +01:00