internal Coordinate3D(double[] coords) { if (coords.Length == 2) { _x = coords[0]; _y = coords[1]; _z = 0; return; } if (coords.Length == 3) { _x = coords[0]; _y = coords[1]; _z = coords[2]; return; } throw new NotSupportedException("Allowed objects with two or three coordinates"); } }