mirror of
https://github.com/gonum/gonum.git
synced 2025-10-14 03:13:46 +08:00
spatial/r3: deprecate Skew package level function in favor of method
This is preferred to prevent heap allocations.
This commit is contained in:

committed by
GitHub

parent
b8506697fa
commit
c5022baf71
@@ -60,6 +60,8 @@ func Eye() *Mat {
|
||||
// ⎡ 0 -z y⎤
|
||||
// Skew({x,y,z}) = ⎢ z 0 -x⎥
|
||||
// ⎣-y x 0⎦
|
||||
//
|
||||
// DEPRECATED: use Mat.Skew()
|
||||
func Skew(v Vec) (M *Mat) {
|
||||
return &Mat{&array{
|
||||
0, -v.Z, v.Y,
|
||||
|
Reference in New Issue
Block a user