Skip to contents

Vector2 Negate

Usage

vector2_negate(v)

Arguments

v

A numeric vector of length 2.

Value

A numeric vector of length 2

Examples

vector2_negate(c(100, 100))
#>    x    y 
#> -100 -100