Beispiel #1
0
        /// <summary>
        /// Creates a new 3-dimensional canonical product.
        /// </summary>
        public static IProduct3 <T1, T2, T3> Create <T1, T2, T3>(IProduct3 <T1, T2, T3> p)
        {
            if (Equals(p.GetType(), typeof(Product3 <T1, T2, T3>)))
            {
                return(p);
            }

            return(Create(p.ProductValue1, p.ProductValue2, p.ProductValue3));
        }
Beispiel #2
0
 /// <summary>
 /// Creates a new 3-dimensional canonical product.
 /// </summary>
 public static Position3 <P1, P2, P3> Create <P1, P2, P3>(IProduct3 <P1, P2, P3> p)
 {
     return(Create(p.ProductValue1, p.ProductValue2, p.ProductValue3));
 }