Add missing KDoc comment

This commit is contained in:
Iaroslav Postovalov 2020-12-07 02:19:50 +07:00
parent 7a571089a8
commit 3d879a766b
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7

View File

@ -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<Quaternion> {