get_3d_cross_prod: Compute the cross product of two 3D vectors

View source: R/analytical_functions.R

get_3d_cross_prodR Documentation

Compute the cross product of two 3D vectors

Description

Compute the cross product of two 3D vectors

Usage

get_3d_cross_prod(v1, v2)

Arguments

v1

First vector, as c(x,y,z)

v2

Second vector, as c(x,y,z)

Value

A vector of length 3 that describes the cross-product

Author(s)

Vikram B. Baliga

See Also

Other mathematical functions: calc_min_dist_v(), deg_2_rad(), find_curve_elbow(), get_2d_angle(), get_3d_angle(), get_dist_point_line(), get_traj_velocities(), get_velocity(), rad_2_deg()

Examples

v1 <- c(1, 1, 3)
v2 <- c(3, 1, 3)
get_3d_cross_prod(v1, v2)

pathviewr documentation built on Nov. 10, 2022, 5:07 p.m.