forked from kscience/kmath
Deprecate direct angle conversion
This commit is contained in:
parent
24b934eab7
commit
c6f6191ef1
@ -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
|
||||
|
@ -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
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user