ucs: Rename polar package to LCh
This is more intuitive.
diff --git a/src/commonMain/kotlin/dev/kdrag0n/colorkt/ColorConversions.kt b/src/commonMain/kotlin/dev/kdrag0n/colorkt/ColorConversions.kt
index cf43ed3..88813ec 100644
--- a/src/commonMain/kotlin/dev/kdrag0n/colorkt/ColorConversions.kt
+++ b/src/commonMain/kotlin/dev/kdrag0n/colorkt/ColorConversions.kt
@@ -7,9 +7,9 @@
import dev.kdrag0n.colorkt.ucs.lab.CieLab
import dev.kdrag0n.colorkt.ucs.lab.Oklab
import dev.kdrag0n.colorkt.ucs.lab.Srlab2
-import dev.kdrag0n.colorkt.ucs.polar.CieLch
-import dev.kdrag0n.colorkt.ucs.polar.Oklch
-import dev.kdrag0n.colorkt.ucs.polar.Srlch2
+import dev.kdrag0n.colorkt.ucs.lch.CieLch
+import dev.kdrag0n.colorkt.ucs.lch.Oklch
+import dev.kdrag0n.colorkt.ucs.lch.Srlch2
internal fun registerAllColors() {
// RGB
diff --git a/src/commonMain/kotlin/dev/kdrag0n/colorkt/cam/Zcam.kt b/src/commonMain/kotlin/dev/kdrag0n/colorkt/cam/Zcam.kt
index b09eb0a..b72e78a 100644
--- a/src/commonMain/kotlin/dev/kdrag0n/colorkt/cam/Zcam.kt
+++ b/src/commonMain/kotlin/dev/kdrag0n/colorkt/cam/Zcam.kt
@@ -2,7 +2,7 @@
import dev.kdrag0n.colorkt.Color
import dev.kdrag0n.colorkt.tristimulus.CieXyzAbs
-import dev.kdrag0n.colorkt.ucs.polar.Lch
+import dev.kdrag0n.colorkt.ucs.lch.Lch
import dev.kdrag0n.colorkt.util.math.cbrt
import dev.kdrag0n.colorkt.util.math.square
import dev.kdrag0n.colorkt.util.math.toDegrees
diff --git a/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lab/Lab.kt b/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lab/Lab.kt
index a3498ba..a439000 100644
--- a/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lab/Lab.kt
+++ b/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lab/Lab.kt
@@ -10,7 +10,7 @@
*
* Implementations of this are usually uniform color spaces.
*
- * It may be helpful to convert these colors to polar [dev.kdrag0n.colorkt.ucs.polar.Lch] representations
+ * It may be helpful to convert these colors to polar [dev.kdrag0n.colorkt.ucs.lch.Lch] representations
* for easier manipulation.
*/
public interface Lab : Color {
diff --git a/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/polar/CieLch.kt b/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lch/CieLch.kt
similarity index 90%
rename from src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/polar/CieLch.kt
rename to src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lch/CieLch.kt
index 2e24bfd..3292383 100644
--- a/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/polar/CieLch.kt
+++ b/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lch/CieLch.kt
@@ -1,4 +1,4 @@
-package dev.kdrag0n.colorkt.ucs.polar
+package dev.kdrag0n.colorkt.ucs.lch
import dev.kdrag0n.colorkt.ucs.lab.CieLab
import dev.kdrag0n.colorkt.util.conversion.ConversionGraph
@@ -8,7 +8,7 @@
/**
* Polar (LCh) representation of [dev.kdrag0n.colorkt.ucs.lab.CieLab].
*
- * @see dev.kdrag0n.colorkt.ucs.polar.Lch
+ * @see dev.kdrag0n.colorkt.ucs.lch.Lch
*/
public data class CieLch(
override val L: Double,
@@ -36,7 +36,7 @@
/**
* Convert this color to the polar (LCh) representation of CIELAB.
*
- * @see dev.kdrag0n.colorkt.ucs.polar.Lch
+ * @see dev.kdrag0n.colorkt.ucs.lch.Lch
* @return Color represented as CIELCh
*/
@JvmStatic
diff --git a/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/polar/Lch.kt b/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lch/Lch.kt
similarity index 92%
rename from src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/polar/Lch.kt
rename to src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lch/Lch.kt
index 6735744..daa645e 100644
--- a/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/polar/Lch.kt
+++ b/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lch/Lch.kt
@@ -1,10 +1,9 @@
-package dev.kdrag0n.colorkt.ucs.polar
+package dev.kdrag0n.colorkt.ucs.lch
import dev.kdrag0n.colorkt.Color
import dev.kdrag0n.colorkt.util.math.toDegrees
import dev.kdrag0n.colorkt.util.math.toRadians
import dev.kdrag0n.colorkt.ucs.lab.Lab
-import dev.kdrag0n.colorkt.util.math.square
import kotlin.math.*
/**
diff --git a/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/polar/Oklch.kt b/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lch/Oklch.kt
similarity index 90%
rename from src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/polar/Oklch.kt
rename to src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lch/Oklch.kt
index 250f0e5..2b454f5 100644
--- a/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/polar/Oklch.kt
+++ b/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lch/Oklch.kt
@@ -1,4 +1,4 @@
-package dev.kdrag0n.colorkt.ucs.polar
+package dev.kdrag0n.colorkt.ucs.lch
import dev.kdrag0n.colorkt.ucs.lab.Oklab
import dev.kdrag0n.colorkt.util.conversion.ConversionGraph
@@ -8,7 +8,7 @@
/**
* Polar (LCh) representation of [dev.kdrag0n.colorkt.ucs.lab.Oklab].
*
- * @see dev.kdrag0n.colorkt.ucs.polar.Lch
+ * @see dev.kdrag0n.colorkt.ucs.lch.Lch
*/
public data class Oklch(
override val L: Double,
@@ -36,7 +36,7 @@
/**
* Convert this color to the polar (LCh) representation of Oklab.
*
- * @see dev.kdrag0n.colorkt.ucs.polar.Lch
+ * @see dev.kdrag0n.colorkt.ucs.lch.Lch
* @return Color represented as OkLCh
*/
@JvmStatic
diff --git a/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/polar/Srlch2.kt b/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lch/Srlch2.kt
similarity index 90%
rename from src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/polar/Srlch2.kt
rename to src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lch/Srlch2.kt
index 0a3fb26..91f62bd 100644
--- a/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/polar/Srlch2.kt
+++ b/src/commonMain/kotlin/dev/kdrag0n/colorkt/ucs/lch/Srlch2.kt
@@ -1,4 +1,4 @@
-package dev.kdrag0n.colorkt.ucs.polar
+package dev.kdrag0n.colorkt.ucs.lch
import dev.kdrag0n.colorkt.ucs.lab.Srlab2
import dev.kdrag0n.colorkt.util.conversion.ConversionGraph
@@ -8,7 +8,7 @@
/**
* Polar (LCh) representation of [dev.kdrag0n.colorkt.ucs.lab.Srlab2].
*
- * @see dev.kdrag0n.colorkt.ucs.polar.Lch
+ * @see dev.kdrag0n.colorkt.ucs.lch.Lch
*/
public data class Srlch2(
override val L: Double,
@@ -36,7 +36,7 @@
/**
* Convert this color to the polar (LCh) representation of SRLAB2.
*
- * @see dev.kdrag0n.colorkt.ucs.polar.Lch
+ * @see dev.kdrag0n.colorkt.ucs.lch.Lch
* @return Color represented as SRLCh2
*/
@JvmStatic
diff --git a/src/commonTest/kotlin/dev/kdrag0n/colorkt/tests/Conversion.kt b/src/commonTest/kotlin/dev/kdrag0n/colorkt/tests/Conversion.kt
index 6f93bb5..2c28052 100644
--- a/src/commonTest/kotlin/dev/kdrag0n/colorkt/tests/Conversion.kt
+++ b/src/commonTest/kotlin/dev/kdrag0n/colorkt/tests/Conversion.kt
@@ -4,9 +4,9 @@
import dev.kdrag0n.colorkt.rgb.Srgb
import dev.kdrag0n.colorkt.ucs.lab.Oklab
import dev.kdrag0n.colorkt.ucs.lab.Oklab.Companion.toOklab
-import dev.kdrag0n.colorkt.ucs.polar.CieLch
-import dev.kdrag0n.colorkt.ucs.polar.Oklch
-import dev.kdrag0n.colorkt.ucs.polar.Oklch.Companion.toOklch
+import dev.kdrag0n.colorkt.ucs.lch.CieLch
+import dev.kdrag0n.colorkt.ucs.lch.Oklch
+import dev.kdrag0n.colorkt.ucs.lch.Oklch.Companion.toOklch
import kotlin.test.Test
import kotlin.test.assertEquals
diff --git a/src/commonTest/kotlin/dev/kdrag0n/colorkt/tests/Gamut.kt b/src/commonTest/kotlin/dev/kdrag0n/colorkt/tests/Gamut.kt
index 7f0e443..c86fc7b 100644
--- a/src/commonTest/kotlin/dev/kdrag0n/colorkt/tests/Gamut.kt
+++ b/src/commonTest/kotlin/dev/kdrag0n/colorkt/tests/Gamut.kt
@@ -12,7 +12,7 @@
import dev.kdrag0n.colorkt.tristimulus.CieXyzAbs.Companion.DEFAULT_SDR_WHITE_LUMINANCE
import dev.kdrag0n.colorkt.tristimulus.CieXyzAbs.Companion.toAbs
import dev.kdrag0n.colorkt.ucs.lab.CieLab
-import dev.kdrag0n.colorkt.ucs.polar.Oklch
+import dev.kdrag0n.colorkt.ucs.lch.Oklch
import kotlin.test.Test
import kotlin.test.assertFalse