Skip to content

Commit f589ef6

Browse files
committed
Allow setting negative attitudes in plot 3D
3D plots already supported negative attitude values (looking at the plot from "below"), but the mouse drag interface was limited to positive values in the 0-90 degree range. This commit changes the range to -90..90. See also: https://racket.discourse.group/t/questions-about-plot-plot3d/1134
1 parent c7a9e02 commit f589ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plot-gui-lib/plot/private/gui/snip3d.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
(define (set-altitude!)
5656
(define degrees-per-pixel (/ 180 (send (get-bitmap) get-height)))
5757
(define dy (- mouse-y left-click-y))
58-
(set! altitude (clamp (+ last-altitude (* dy degrees-per-pixel)) 0 90)))
58+
(set! altitude (clamp (+ last-altitude (* dy degrees-per-pixel)) -90 90)))
5959

6060
(define (start-update-thread animating?)
6161
(send this start-update-thread

0 commit comments

Comments
 (0)