示例#1
0
        /// <summary>
        /// Checks if the given point are inside this node or any port of it.
        /// </summary>
        /// <param name="Point">Point</param>
        public virtual bool InPorts(Vector2 Point)
        {
            bool status = false;

            status = InputPort.InPort(Point);

            if (!status && OutputPorts != null && OutputPorts.Length > 0)
            {
                for (int i = 0; i < OutputPorts.Length; i++)
                {
                    if (!status && OutputPorts[i] != null)
                    {
                        status = OutputPorts[i].InPort(Point);
                    }
                }
            }
            return(status);
        }