Skip to content

Commit

Permalink
Show compass directions as arrows (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive authored Mar 2, 2025
1 parent 0c50db6 commit e26ab1a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/geodesy/src/core/geodesy-core.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ extension (double: Double)
export CardinalWind.{North, South, East, West}
export IntercardinalWind.{Northeast, Southeast, Southwest, Northwest}

export HalfWind
. { NorthNortheast, EastNortheast, EastSoutheast, SouthSoutheast, SouthSouthwest, WestSouthwest,
export HalfWind .
{ NorthNortheast, EastNortheast, EastSoutheast, SouthSoutheast, SouthSouthwest, WestSouthwest,
WestNorthwest, NorthNorthwest }

package compassBearings:
Expand Down
10 changes: 10 additions & 0 deletions lib/geodesy/src/core/geodesy.CardinalWind.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,15 @@
*/
package geodesy

import gossamer.*
import spectacular.*

object CardinalWind:
given CardinalWind is Showable =
case North => t""
case East => t""
case South => t""
case West => t""

enum CardinalWind:
case North, East, South, West
10 changes: 10 additions & 0 deletions lib/geodesy/src/core/geodesy.IntercardinalWind.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,15 @@
*/
package geodesy

import gossamer.*
import spectacular.*

object IntercardinalWind:
given IntercardinalWind is Showable =
case Northeast => t""
case Southeast => t""
case Southwest => t""
case Northwest => t""

enum IntercardinalWind:
case Northeast, Southeast, Southwest, Northwest

0 comments on commit e26ab1a

Please sign in to comment.