コード例 #1
0
ファイル: JVector.cs プロジェクト: Avatarchik/JPhysics
        /// <summary>
        /// Multiplies a vector by a scale factor.
        /// </summary>
        /// <param name="value2">The vector to scale.</param>
        /// <param name="value1">The scale factor.</param>
        /// <returns>Returns the scaled vector.</returns>
        #region public static JVector operator *(float value1, JVector value2)
        public static JVector operator *(float value1, JVector value2)
        {
            JVector result;

            JVector.Multiply(ref value2, value1, out result);
            return(result);
        }
コード例 #2
0
ファイル: JVector.cs プロジェクト: Avatarchik/JPhysics
        /// <summary>
        /// Multiply a vector with a factor.
        /// </summary>
        /// <param name="value1">The vector to multiply.</param>
        /// <param name="scaleFactor">The scale factor.</param>
        /// <returns>Returns the multiplied vector.</returns>
        #region public static JVector Multiply(JVector value1, float scaleFactor)
        public static JVector Multiply(JVector value1, float scaleFactor)
        {
            JVector result;

            JVector.Multiply(ref value1, scaleFactor, out result);
            return(result);
        }