mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/shared] Change default shape of arrow in CurveView (to match
matplotlib shape)
This commit is contained in:
@@ -96,9 +96,10 @@ protected:
|
||||
* <--- L --->
|
||||
*
|
||||
* l = arrowWith
|
||||
* tanAngle = tan(angle) = l/L
|
||||
* tanAngle = tan(angle) = l/2L
|
||||
*/
|
||||
void drawArrow(KDContext * ctx, KDRect rect, float x, float y, float dx, float dy, KDColor color, float arrowWith = 4, float tanAngle = 0.4f) const; // 0.3639 = tan(20°)
|
||||
|
||||
void drawArrow(KDContext * ctx, KDRect rect, float x, float y, float dx, float dy, KDColor color, float arrowWith = 4, float tanAngle = 1.0f/3.0f) const;
|
||||
void drawGrid(KDContext * ctx, KDRect rect) const;
|
||||
void drawAxes(KDContext * ctx, KDRect rect) const;
|
||||
void drawAxis(KDContext * ctx, KDRect rect, Axis axis) const;
|
||||
|
||||
Reference in New Issue
Block a user