Skip to contents

Vector2 Clamp Value

Usage

vector2_clamp_value(v, min, max)

Arguments

v

A numeric vector of length 2.

min

A number.

max

A number.

Value

A numeric vector of length 2

Examples

vector2_clamp_value(c(100, 100), 0.0, 0.0)
#> x y 
#> 0 0