Vector3D.Negate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Negates a Vector3D structure.
public:
void Negate();
public void Negate ();
member this.Negate : unit -> unit
Public Sub Negate ()
Examples
The following example shows how to negate a Vector3D structure.
// 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)
Remarks
The vector has the same magnitude as before, but its direction is now opposite.
Applies to
See also
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.