07-04-2012, 12:17 PM
http://subversion.assembla.com/svn/L2jFr...itory.java
переменная int proc - это что?
public void add(int x, int y, int zmin, int zmax, int proc)
{
Point[] newPoints = new Point[_points.length + 1];
System.arraycopy(_points, 0, newPoints, 0, _points.length);
newPoints[_points.length] = new Point(x, y, zmin, zmax, proc);
_points = newPoints;
poly.addPoint(x, y);
if(x < _xMin)
{
_xMin = x;
}
if(y < _yMin)
{
_yMin = y;
}
if(x > _xMax)
{
_xMax = x;
}
if(y > _yMax)
{
_yMax = y;
}
if(zmin < _zMin)
{
_zMin = zmin;
}
if(zmax > _zMax)
{
_zMax = zmax;
}
_procMax += proc;
newPoints = null;
}
переменная int proc - это что?
public void add(int x, int y, int zmin, int zmax, int proc)
{
Point[] newPoints = new Point[_points.length + 1];
System.arraycopy(_points, 0, newPoints, 0, _points.length);
newPoints[_points.length] = new Point(x, y, zmin, zmax, proc);
_points = newPoints;
poly.addPoint(x, y);
if(x < _xMin)
{
_xMin = x;
}
if(y < _yMin)
{
_yMin = y;
}
if(x > _xMax)
{
_xMax = x;
}
if(y > _yMax)
{
_yMax = y;
}
if(zmin < _zMin)
{
_zMin = zmin;
}
if(zmax > _zMax)
{
_zMax = zmax;
}
_procMax += proc;
newPoints = null;
}