Converting a struct of floats to an array without having to iterate

前端 未结 0 1528
悲哀的现实
悲哀的现实 2020-12-30 03:13

I\'m writing a geometry library in Go and therefore use a Point struct:

type Point struct {
    X, Y, Z float32
}

I pass an array of points t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题