Esempio n. 1
0
        private void DrawPoint(Graphics g, Body.DeltaPoint deltaPoint, Color color)
        {
            var size        = 2;
            var positionPen = new Pen(color);

            g.DrawRectangle(positionPen, deltaPoint.Position.X - size / 2, deltaPoint.Position.Y - size / 2, size, size);
        }
Esempio n. 2
0
        private void DrawPointWithZ(Graphics g, Body.DeltaPoint deltaPoint, Color color, int width, int height)
        {
            var size        = deltaPoint.LocalizedPosition.Z * 50 + 50;
            var positionPen = new Pen(color);

            g.DrawRectangle(positionPen, (int)(deltaPoint.Position.X * width * 0.75 + width / 2 - size / 2), height - (int)(deltaPoint.Position.Y * height * 0.75 + height / 2 - size / 2), size, size);
        }