Vector3D.Negate Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Bir Vector3D yapıyı olumsuzlar.
public:
void Negate();
public void Negate();
member this.Negate : unit -> unit
Public Sub Negate ()
Örnekler
Aşağıdaki örnekte, bir Vector3D yapının nasıl olumsuz görüntülendği gösterilmektedir.
// Negates a Vector3D using the Negate method.
Vector3D vector1 = new Vector3D(20, 30, 40);
Vector3D vectorResult = new Vector3D();
vector1.Negate();
// vector1 is equal to (-20, -30, -40)
' Negates a Vector3D using the Negate method.
Dim vector1 As New Vector3D(20, 30, 40)
Dim vectorResult As New Vector3D()
vector1.Negate()
' vector1 is equal to (-20, -30, -40)
Açıklamalar
Vektör, öncekiyle aynı büyüklüğe sahiptir, ancak yönü şimdi tam tersidir.