From 3d879a766bd1fd4030ae6a16c850f2184f2fd15d Mon Sep 17 00:00:00 2001 From: Iaroslav Postovalov Date: Mon, 7 Dec 2020 02:19:50 +0700 Subject: [PATCH] Add missing KDoc comment --- .../commonMain/kotlin/kscience/kmath/operations/Quaternion.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kmath-core/src/commonMain/kotlin/kscience/kmath/operations/Quaternion.kt b/kmath-core/src/commonMain/kotlin/kscience/kmath/operations/Quaternion.kt index b070f1be3..0e586a27c 100644 --- a/kmath-core/src/commonMain/kotlin/kscience/kmath/operations/Quaternion.kt +++ b/kmath-core/src/commonMain/kotlin/kscience/kmath/operations/Quaternion.kt @@ -213,6 +213,10 @@ public data class Quaternion(val w: Double, val x: Double, val y: Double, val z: public override fun unwrap(): Quaternion = this public override fun Quaternion.wrap(): Quaternion = this public override fun compareTo(other: Quaternion): Int = r.compareTo(other.r) + + /** + * Returns a string representation of this quaternion. + */ public override fun toString(): String = "($w + $x * i + $y * j + $z * k)" public companion object : MemorySpec {