lucuma.catalog.AngularSize.scala Maven / Gradle / Ivy
The newest version!
// Copyright (c) 2016-2023 Association of Universities for Research in Astronomy, Inc. (AURA)
// For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause
package lucuma.catalog
import cats.Eq
import cats.derived.*
import lucuma.core.math.Angle
import monocle.Focus
import monocle.Lens
/**
* Angular size of an object in the sky. The major axis is the longest one, but we don't enforce
* this.
*/
case class AngularSize(majorAxis: Angle, minorAxis: Angle) derives Eq
object AngularSize:
val majorAxis: Lens[AngularSize, Angle] = Focus[AngularSize](_.majorAxis)
val minorAxis: Lens[AngularSize, Angle] = Focus[AngularSize](_.minorAxis)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy