我在集合中生成 (x,y,z) 坐标,如下所示:
this.facePoints3D = frame.Get3DShape();
foreach(Vector3DF vector in facePoints3D) //vector has 121 points
{
float zvect = vector.Z //collect z-points which is made of 121 points
}
//where Vector3DF is a struct of floats (x, y, z)
问题是我想在 C# 中找到 zvect 的 L2 范数。我查看了 msdn 的文档网站,似乎没有预定义的方法可以做到这一点。
有人有想法吗?