Skip to contents

Vector2 Normalize

Usage

vector2_normalize(v)

Arguments

v

A numeric vector of length 2.

Value

A numeric vector of length 2

Examples

vector2_normalize(c(100, 100))
#>         x         y 
#> 0.7071068 0.7071068