# Vector.Division(Vector, Double)Vector.Division(Vector, Double)Vector.Division(Vector, Double) Operator

## Définition

Divise le vecteur spécifié par la scalaire indiquée et retourne le vecteur résultant.Divides the specified vector by the specified scalar and returns the resulting vector.

``````public:
static System::Windows::Vector operator /(System::Windows::Vector vector, double scalar);``````
``public static System.Windows.Vector operator / (System.Windows.Vector vector, double scalar);``
``static member ( / ) : System.Windows.Vector * double -> System.Windows.Vector``

#### Paramètres

vector
Vector Vector Vector

Vecteur à diviser.The vector to divide.

scalar
Double Double Double

Scalaire par laquelle `vector` sera divisé.The scalar by which `vector` will be divided.

#### Retours

Résultat de la division de `vector` par `scalar`.The result of dividing `vector` by `scalar`.

## Exemples

L’exemple suivant montre comment utiliser cet opérateur (/) pour diviser une Vector structure par un scalaire.The following example shows how to use this operator (/) to divide a Vector structure by a scalar.

``````private Vector overloadedDivisionOperatorExample()
{
Vector vector1 = new Vector(20, 30);
Vector vectorResult = new Vector();
Double scalar1 = 75;

// Divide vector by scalar.
// vectorResult is approximately equal to (0.26667,0.4)
vectorResult = vector1 / scalar1;

return vectorResult;

}
``````
``````Private Function overloadedDivisionOperatorExample() As Vector
Dim vector1 As New Vector(20, 30)
Dim vectorResult As New Vector()
Dim scalar1 As Double = 75

' Divide vector by scalar.
' vectorResult is approximately equal to (0.26667,0.4)
vectorResult = vector1 / scalar1

Return vectorResult

End Function
``````