Skip to contents

Vector2 Refract

Usage

vector2_refract(v, n, r)

Arguments

v

A numeric vector of length 2.

n

A numeric vector of length 2.

r

A number.

Value

A numeric vector of length 2

Examples

vector2_refract(c(100, 100), c(100, 100), 0.0)
#>    x    y 
#> -100 -100