Example #1
0
        /// <summary>
        /// Creates a new 5-dimensional canonical product.
        /// </summary>
        public static IProduct5 <T1, T2, T3, T4, T5> Create <T1, T2, T3, T4, T5>(IProduct5 <T1, T2, T3, T4, T5> p)
        {
            if (Equals(p.GetType(), typeof(Product5 <T1, T2, T3, T4, T5>)))
            {
                return(p);
            }

            return(Create(p.ProductValue1, p.ProductValue2, p.ProductValue3, p.ProductValue4, p.ProductValue5));
        }
Example #2
0
 /// <summary>
 /// Creates a new 5-dimensional canonical product.
 /// </summary>
 public static Position5 <P1, P2, P3, P4, P5> Create <P1, P2, P3, P4, P5>(IProduct5 <P1, P2, P3, P4, P5> p)
 {
     return(Create(p.ProductValue1, p.ProductValue2, p.ProductValue3, p.ProductValue4, p.ProductValue5));
 }