Esempio n. 1
0
        /// <summary>
        /// The cross product of two vectors.
        /// </summary>
        /// <param name="vector1">The first vector.</param>
        /// <param name="vector2">The second vector.</param>
        /// <returns>The cross product of both vectors.</returns>
        #region public static JVector Cross(JVector vector1, JVector vector2)
        public static JVector Cross(JVector vector1, JVector vector2)
        {
            JVector result;

            JVector.Cross(ref vector1, ref vector2, out result);
            return(result);
        }
Esempio n. 2
0
        /// <summary>
        /// Calculates the cross product of two vectors.
        /// </summary>
        /// <param name="value1">The first vector.</param>
        /// <param name="value2">The second vector.</param>
        /// <returns>Returns the cross product of both.</returns>
        #region public static JVector operator %(JVector value1, JVector value2)
        public static JVector operator %(JVector value1, JVector value2)
        {
            JVector result; JVector.Cross(ref value1, ref value2, out result);

            return(result);
        }