Vector.Division(Vector, Double) 演算子

定義

指定したベクターを指定したスカラーで除算し、その結果のベクターを返します。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

パラメーター

vector
Vector

除算するベクター。The vector to divide.

scalar
Double

vector を除算するスカラー。The scalar by which vector will be divided.

戻り値

vectorscalar で除算した結果。The result of dividing vector by scalar.

次の例では、この演算子 (/) を使用してVector 、構造体をスカラーで除算する方法を示します。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

適用対象

こちらもご覧ください