Ejemplo n.º 1
0
        /// <summary>
        /// Draws a connection between two screen space points.
        /// </summary>
        /// <param name="screenX1"></param>
        /// <param name="screenY1"></param>
        /// <param name="screenX2"></param>
        /// <param name="screenY2"></param>
        /// <returns></returns>
        public VisualLogConnectionEntry DrawConnection(float screenX1, float screenY1, float screenX2, float screenY2)
        {
            VisualLogConnectionEntry entry = new VisualLogConnectionEntry();

            entry.PosA = new Vector3(screenX1, screenY1, 0.0f);
            entry.PosB = new Vector3(screenX2, screenY2, 0.0f);
            this.Draw(entry);
            return(entry);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Draws a connection between two world space points. Both points need to be on the same Z plane.
        /// </summary>
        /// <param name="worldX1"></param>
        /// <param name="worldY1"></param>
        /// <param name="worldZ"></param>
        /// <param name="worldX2"></param>
        /// <param name="worldY2"></param>
        /// <returns></returns>
        public VisualLogConnectionEntry DrawConnection(float worldX1, float worldY1, float worldZ, float worldX2, float worldY2)
        {
            VisualLogConnectionEntry entry = new VisualLogConnectionEntry();

            entry.PosA   = new Vector3(worldX1, worldY1, worldZ);
            entry.PosB   = new Vector3(worldX2, worldY2, worldZ);
            entry.Anchor = VisualLogAnchor.World;
            this.Draw(entry);
            return(entry);
        }