Deprecate direct angle conversion

This commit is contained in:
Alexander Nozik 2024-01-28 18:15:33 +03:00
parent 24b934eab7
commit c6f6191ef1
2 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,6 @@ import space.kscience.attributes.SafeType
import space.kscience.attributes.safeTypeOf
import space.kscience.kmath.UnstableKMathAPI
import space.kscience.kmath.linear.*
import space.kscience.kmath.linear.Matrix
import space.kscience.kmath.nd.StructureFeature
import space.kscience.kmath.operations.Float32Field
import space.kscience.kmath.operations.Float64Field

View File

@ -74,6 +74,7 @@ public fun tan(angle: Angle): Double = kotlin.math.tan(angle.toRadians().value)
public val Number.radians: Radians get() = Radians(toDouble())
@Deprecated("Convert to radians", ReplaceWith("toRadians().value"))
public val Angle.radians: Double get() = toRadians().value
/**
@ -98,6 +99,7 @@ public value class Degrees(public val value: Double) : Angle {
public val Number.degrees: Degrees get() = Degrees(toDouble())
@Deprecated("Convert to degrees", ReplaceWith("toDegrees().value"))
public val Angle.degrees: Double get() = toDegrees().value
/**