【发布时间】:2018-07-03 15:12:35
【问题描述】:
我有一个线性索引,按列主要顺序展平,我想取回 3D 坐标 [x,y,z]。我在行专业 https://math.stackexchange.com/questions/19765/calculating-coordinates-from-a-flattened-3d-array-when-you-know-the-size-index 找到了这个,但无法弄清楚列专业?
【问题讨论】:
-
有助于绘制图表。
-
您链接到的帖子具有列主要顺序的公式。见this diagram at Wikipedia。
标签: c++ matrix coordinates linear-algebra