File tree Expand file tree Collapse file tree
src/main/kotlin/org/mechdancer/geometry/transformation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,14 +2,13 @@ package org.mechdancer.geometry.transformation
22
33import org.mechdancer.algebra.core.Matrix
44import org.mechdancer.algebra.core.Vector
5- import org.mechdancer.algebra.core.matrixView
65import org.mechdancer.algebra.function.matrix.dim
76import org.mechdancer.algebra.function.matrix.inverse
87import org.mechdancer.algebra.function.matrix.times
98import org.mechdancer.algebra.function.vector.select
109import org.mechdancer.algebra.implement.matrix.Cofactor
11- import org.mechdancer.algebra.implement.matrix.builder.arrayMatrixOfUnit
1210import org.mechdancer.algebra.implement.matrix.builder.listMatrixOf
11+ import org.mechdancer.algebra.implement.matrix.special.NumberMatrix
1312import org.mechdancer.algebra.implement.vector.toListVector
1413
1514/* * 用齐次变换矩阵 [matrix] 存储的变换关系 */
@@ -56,7 +55,7 @@ data class MatrixTransformation(val matrix: Matrix) : Transformation<MatrixTrans
5655 * 生成 [dim] 维单位变换
5756 */
5857 fun unit (dim : Int ) =
59- MatrixTransformation (arrayMatrixOfUnit( dim + 1 ) )
58+ MatrixTransformation (NumberMatrix [ dim + 1 , 1.0 ] )
6059
6160 /* *
6261 * 非齐次形式转化为齐次形式
You can’t perform that action at this time.
0 commit comments