public MyVector3 MaxCoord() { MyVector3 maxCoord = new MyVector3(double.MinValue, double.MinValue, double.MinValue); for (int i = 0, j = 0; i < vertexCount; i++, j += 3) { MyVector3 v = new MyVector3(vertexPos, j); maxCoord = MyVector3.Max(maxCoord, v); } return(maxCoord); }