Esempio n. 1
0
        // same as 'T' but use sinlge method call to optimize perfromance
        public double[] T(Percent[] ps)
        {
            foreach (var p in ps)
            {
                p.MustBeInScope01();
            }

            double[] s = ps.Select(o => (double)o).ToArray();
            double[] t = Crv.NormalizedLengthParameters(s, 1E-08); // single method call to Rhinocommon
            if (t != null)
            {
                return(t);
            }
            return(ps.Select(o => T(o)).ToArray());
        }