Hermes
Toggle table of contents
0.2.1
jvm
Platform filter
jvm
Switch theme
Search in API
Hermes
core
/
com.acmerobotics.roadrunner.geometry
/
Matrix
/
Companion
/
diagonal
diagonal
@
JvmStatic
fun
diagonal
(
vararg
data
:
Double
)
:
Matrix
Creates a matrix with
data
along the diagonal and all other elements set to 0.
@
JvmStatic
fun
diagonal
(
data
:
Collection
<
Double
>
)
:
Matrix