Create Data.NumIdr.Transform.Transform
This commit is contained in:
parent
8839dd049a
commit
33f64c69d9
3 changed files with 125 additions and 8 deletions
|
|
@ -103,8 +103,9 @@ scalingH : {n : _} -> Num a => a -> HMatrix' n a
|
|||
scalingH x = indexSet [last,last] 1 $ repeatDiag x 0
|
||||
|
||||
export
|
||||
translationH : {n : _} -> Num a => Vector n a -> HMatrix' n a
|
||||
translationH = hmatrix identity
|
||||
translationH : Num a => Vector n a -> HMatrix' n a
|
||||
translationH {n} v with (viewShape v)
|
||||
_ | Shape [n] = hmatrix identity v
|
||||
|
||||
export
|
||||
rotation2DH : Double -> HMatrix' 2 Double
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue