Skip to content

format

typescript
Vector2.Negative()

class: Vector2

description

Get the opposite of the current vector.

parameter

param_nametypedescription

reture

typedescription
voidThe opposite of the vector.

code example

typescript
let v2 = new Vector2(-1, -2);
v2.Negative();