Canguro.Controller.Snap.SnapPainter.drawPerpPoint C# (CSharp) Метод

drawPerpPoint() приватный Метод

private drawPerpPoint ( Device device, float x, float y, Color colorWithAlpha ) : void
device Device
x float
y float
colorWithAlpha Color
Результат void
        private void drawPerpPoint(Device device, float x, float y, Color colorWithAlpha)
        {
            Line line = GraphicViewManager.Instance.ResourceManager.SnapLines[0];
            int midWidth = 5;

            line.Begin();
                line.Draw(new Vector2[] { new Vector2(x - 2.0f * midWidth, y), new Vector2(x, y) }, colorWithAlpha);
                line.Draw(new Vector2[] { new Vector2(x, y), new Vector2(x, y + 2.0f * midWidth) }, colorWithAlpha);
                line.Draw(new Vector2[] { new Vector2(x - 2.0f * midWidth, y + 2.0f * midWidth), new Vector2(x + 1.5f * midWidth, y + 2.0f * midWidth) }, colorWithAlpha);
                line.Draw(new Vector2[] { new Vector2(x - 2.0f * midWidth, y + 2.0f * midWidth), new Vector2(x - 2.0f * midWidth, y - 1.5f * midWidth) }, colorWithAlpha);
            line.End();
        }