Пример #1
0
        public override void TryAndProcess()
        {
            NodeInput input  = Inputs[1];
            NodeInput input2 = Inputs[2];

            if (!input.IsValid || !input2.IsValid)
            {
                return;
            }

            try
            {
                MVector v  = (MVector)input.Data;
                MVector v2 = (MVector)input2.Data;
                output.Data = v.Distance(v2);
                result      = output.Data?.ToString();
            }
            catch (Exception e)
            {
                Log.Error(e);
            }
        }