protected override Polygon GetPistonView(PositionedCylinder _positionedCylinder, double _crankshaftRotation_deg)
        {
            double _cylinderRelativeCrankThrowRotation_deg = _positionedCylinder.GetCylinderRelativeCrankThrowRotation_deg(_crankshaftRotation_deg);
            double _offset_rad = Conversions.DegToRad(_positionedCylinder.Tilt_deg);
            double _cosOffset  = Math.Cos(_offset_rad);


            double _TDC = (_cosOffset * _positionedCylinder.GetPhysicalHeightAbovePiston_mm(_cylinderRelativeCrankThrowRotation_deg));
            double _BDC = (_cosOffset * _positionedCylinder.GetPhysicalHeightUnderPiston_mm(_cylinderRelativeCrankThrowRotation_deg));

            double _rX = _positionedCylinder.Bore_mm / 2d * EngineDesigner.Media.Properties.Settings.Default.PistonVsCylinderClearance;
            double _rY = (Math.Abs(Math.Sin(_offset_rad) * _rX));

            double _rTilt = _rX * Math.Sin(Conversions.DegToRad(_positionedCylinder.Tilt_deg));


            Polygon _polygon = Polygon.Line(
                -_rX + _positionedCylinder.Offset_mm,
                _BDC,
                -_rX + _positionedCylinder.Offset_mm,
                _TDC);

            _polygon.Add(Polygon.Arc(_positionedCylinder.Offset_mm, _TDC, _rX, _rTilt, 0, 540, EngineDesigner.Media.Properties.Settings.Default.BasicEngineSketchArcPrecision));

            _polygon.Add(Polygon.Line(
                             _rX + _positionedCylinder.Offset_mm,
                             _TDC,
                             _rX + _positionedCylinder.Offset_mm,
                             _BDC));

            _polygon.Add(Polygon.Arc(_positionedCylinder.Offset_mm, _BDC, _rX, _rTilt, 180, 540, EngineDesigner.Media.Properties.Settings.Default.BasicEngineSketchArcPrecision));


            return(_polygon);
        }
        protected override Polygon GetPistonView(PositionedCylinder _positionedCylinder, double _crankshaftRotation_deg)
        {
            double _cylinderRelativeCrankThrowRotation_deg = _positionedCylinder.GetCylinderRelativeCrankThrowRotation_deg(_crankshaftRotation_deg);

            double _physicalHeightAbovePiston_mm = _positionedCylinder.GetPhysicalHeightAbovePiston_mm(_cylinderRelativeCrankThrowRotation_deg);
            double _physicalHeightUnderPiston_mm = _positionedCylinder.GetPhysicalHeightUnderPiston_mm(_cylinderRelativeCrankThrowRotation_deg);

            double _cylinderHalfBore = _positionedCylinder.Bore_mm / 2d * EngineDesigner.Media.Properties.Settings.Default.PistonVsCylinderClearance;

            double _offset_rad = Conversions.DegToRad(_positionedCylinder.Tilt_deg);
            double _sinOffset  = Math.Sin(_offset_rad);
            double _cosOffset  = Math.Cos(_offset_rad);


            //zgornja center točka bata
            double _xTDC = (_sinOffset * _physicalHeightAbovePiston_mm);
            double _yTDC = (_cosOffset * _physicalHeightAbovePiston_mm);

            //spodnja center točka bata
            double _xBDC = (_sinOffset * _physicalHeightUnderPiston_mm);
            double _yBDC = (_cosOffset * _physicalHeightUnderPiston_mm);

            //razlike od center do skrajnih točk
            double _x_ = (_cosOffset * _cylinderHalfBore);
            double _y_ = (_sinOffset * _cylinderHalfBore);

            //zgornje skrajne točke
            double _x1 = _xTDC - _x_;
            double _y1 = _yTDC + _y_;
            double _x2 = _xTDC + _x_;
            double _y2 = _yTDC - _y_;

            //spodnje skrajne točke
            double _x3 = _xBDC - _x_;
            double _y3 = _yBDC + _y_;
            double _x4 = _xBDC + _x_;
            double _y4 = _yBDC - _y_;


            return(Polygon.Rectangle(_x1, _y1, _x2, _y2, _x3, _y3, _x4, _y4));
        }
        protected override Polygon GetCylinderView(PositionedCylinder _positionedCylinder)
        {
            double _physicalHeightAbovePiston_mm = _positionedCylinder.GetPhysicalHeightAbovePiston_mm(0);
            double _physicalHeightUnderPiston_mm = _positionedCylinder.GetPhysicalHeightUnderPiston_mm(Stroke.StrokeDuration_deg);

            double _cylinderHalfBore = _positionedCylinder.Bore_mm / 2;

            double _offset_rad = Conversions.DegToRad(_positionedCylinder.Tilt_deg);
            double _sinOffset  = Math.Sin(_offset_rad);
            double _cosOffset  = Math.Cos(_offset_rad);


            //zgornja center točka bata
            double _xTDC = (_sinOffset * _physicalHeightAbovePiston_mm);
            double _yTDC = (_cosOffset * _physicalHeightAbovePiston_mm);

            //spodnja center točka bata
            double _xBDC = (_sinOffset * _physicalHeightUnderPiston_mm);
            double _yBDC = (_cosOffset * _physicalHeightUnderPiston_mm);

            //razlike od center do skrajnih točk
            double _x_ = (_cosOffset * _cylinderHalfBore);
            double _y_ = (_sinOffset * _cylinderHalfBore);

            //zgornje skrajne točke
            double _x1 = _xTDC - _x_;
            double _y1 = _yTDC + _y_;
            double _x2 = _xTDC + _x_;
            double _y2 = _yTDC - _y_;

            //spodnje skrajne točke
            double _x3 = _xBDC - _x_;
            double _y3 = _yBDC + _y_;
            double _x4 = _xBDC + _x_;
            double _y4 = _yBDC - _y_;


            return(Polygon.Rectangle(_x1, _y1, _x2, _y2, _x3, _y3, _x4, _y4));
        }