spatial/r3: deprecate Skew package level function in favor of method

This is preferred to prevent heap allocations.
This commit is contained in:
Patricio Whittingslow
2022-07-29 21:32:18 -03:00
committed by GitHub
parent b8506697fa
commit c5022baf71
4 changed files with 23 additions and 1 deletions

View File

@@ -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,