spatial/r3: use array conversion in safe code

This commit is contained in:
Dan Kortschak
2022-03-10 22:56:08 +10:30
parent 1a8a607b3c
commit 92bbdcdd97
3 changed files with 2 additions and 9 deletions

View File

@@ -140,7 +140,6 @@ func (r Rotation) Mat() *Mat {
}
func arrayFrom(vals []float64) *array {
// TODO(kortschak): Use array conversion when go1.16 is no longer supported.
return (*array)(unsafe.Pointer(&vals[0]))
}