Skip to contents

Vector4 Move Towards

Usage

vector4_move_towards(v, target, max_distance)

Arguments

v

A numeric vector of length 4.

target

A numeric vector of length 4.

max_distance

A number.

Value

A numeric vector of length 4

Examples

vector4_move_towards(c(0, 0, 0, 1), c(0, 0, 0, 1), 0.0)
#> x y z w 
#> 0 0 0 1