Skip to content

Commit

Permalink
add wavelength def
Browse files Browse the repository at this point in the history
  • Loading branch information
erikerlandson committed Nov 5, 2023
1 parent 74edcc5 commit cf677ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/main/scala/coulomb/quantity.scala
Original file line number Diff line number Diff line change
Expand Up @@ -650,3 +650,9 @@ object test:
new Depth[V, U]:
val quantity = q

abstract class Wavelength[V, U] extends ScopedQuantity[V, U, Meter]
object Wavelength extends ScopedQuantityCompanion[Wavelength, Meter]
given ScopedQuantityConstructor[Wavelength] with
def constructFrom[V, U](q: Quantity[V, U]): Wavelength[V, U] =
new Wavelength[V, U]:
val quantity = q

0 comments on commit cf677ed

Please sign in to comment.