Beispiel #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 float Cross(JVector vector1, JVector vector2)
        {
            float result;

            JVector.Cross(ref vector1, ref vector2, out result);
            return(result);
        }
Beispiel #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 float operator %(JVector value1, JVector value2)
        {
            float result; JVector.Cross(ref value1, ref value2, out result);

            return(result);
        }