Skip to content

Commit edcdc3a

Browse files
committed
Add THETA_ZERO_LOCATION constant for directional angles
1 parent 107093f commit edcdc3a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/gr/plot.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ class Plot
158158
dejavusans: 233
159159
}.freeze
160160

161+
THETA_ZERO_LOCATION = {
162+
'E' => 0,
163+
'N' => Math::PI / 2,
164+
'W' => Math::PI,
165+
'S' => 1.5 * Math::PI
166+
}.freeze
167+
161168
@last_plot = nil
162169
class << self
163170
attr_accessor :last_plot

0 commit comments

Comments
 (0)