Ce sujet n'a pas encore été évalué - Évaluez ce sujet

Vector.Negate, méthode

Negates this vector.

Espace de noms: System.Windows
Assembly : WindowsBase (dans windowsbase.dll)

public void Negate ()
public void Negate ()
public function Negate ()
Vous ne pouvez pas utiliser des méthodes dans XAML.

The vector has the same magnitude as before, but its direction is now opposite.

The following example shows how to use this method to negate a vector.

private Vector negateExample()
{
    Vector vectorResult = new Vector(20, 30);

    // Make the direction of the Vector opposite but
    // leave the vector magnitude the same.
    // vectorResult is equal to (-20, -30)
    vectorResult.Negate();

    return vectorResult;

}

Microsoft .NET Framework 3.0 est pris en charge sur Windows Vista, Microsoft Windows XP SP2 et Windows Server 2003 SP1.

.NET Framework

Prise en charge dans : 3.0
Cela vous a-t-il été utile ?
(1500 caractères restants)

Ajouts de la communauté

AJOUTER
© 2013 Microsoft. Tous droits réservés.