//
        // Summary:
        //     Multiplies a 3-D vector by a System.Single value.
        //
        // Parameters:
        //   source:
        //     Source Microsoft.DirectX.Vector3d structure.
        //
        //   f:
        //     Source System.Single value used as a multiplier.
        //
        // Returns:
        //     A Microsoft.DirectX.Vector3d structure that is multiplied by the System.Single
        //     value.
        public static Vector3d Multiply(Vector3d source, double f)
        {
            Vector3d result = new Vector3d(source);

            result.Multiply(f);
            return(result);
        }
        //
        // Summary:
        //     Scales a 3-D vector.
        //
        // Parameters:
        //   source:
        //     Source Microsoft.DirectX.Vector3d structure.
        //
        //   scalingFactor:
        //     Scaling value.
        //
        // Returns:
        //     A Microsoft.DirectX.Vector3d structure that is the scaled vector.
        public static Vector3d Scale(Vector3d source, double scalingFactor)
        {
            Vector3d result = source;

            result.Multiply(scalingFactor);
            return(result);
        }
Exemple #3
0
 //
 // Summary:
 //     Multiplies a 3-D vector by a System.Single value.
 //
 // Parameters:
 //   source:
 //     Source Microsoft.DirectX.Vector3d structure.
 //
 //   f:
 //     Source System.Single value used as a multiplier.
 //
 // Returns:
 //     A Microsoft.DirectX.Vector3d structure that is multiplied by the System.Single
 //     value.
 public static Vector3d Multiply(Vector3d source, double f)
 {
     Vector3d result = new Vector3d(source);
     result.Multiply(f);
     return result;
 }