private void calcConveyorPath() { List <Point> topPart = GraphMath.CalcArcPoint( 150, 500, 45, 225, 50, _pathResolution, _scale); List <Point> leftPart = GraphMath.CalcArcPoint( -43.0672, 304.1683, -45, 45, 225, _pathResolution, _scale); leftPart.Reverse(); List <Point> bottomPart = GraphMath.CalcArcPoint( 150, 108.3365, 135, 315, 50, _pathResolution, _scale); List <Point> rightPart = GraphMath.CalcArcPoint( -43.0672, 304.1683, -45, 45, 325, _pathResolution, _scale); _coords = _coords.Concat(topPart).ToList(); _coords = _coords.Concat(leftPart).ToList(); _coords = _coords.Concat(bottomPart).ToList(); _coords = _coords.Concat(rightPart).ToList(); _coords.Add(_coords[0]); }
private void calcConveyorPath() { List <Point> rotor = GraphMath.CalcArcPoint( 50, 315, 0, 360, 100, _pathResolution, _scale); _coords = _coords.Concat(rotor).ToList(); _coords.Add(_coords[0]); }