Learn R Programming

pathviewr (version 1.1.8)

get_3d_cross_prod: Compute the cross product of two 3D vectors

Description

Compute the cross product of two 3D vectors

Usage

get_3d_cross_prod(v1, v2)

Value

A vector of length 3 that describes the cross-product

Arguments

v1

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

v2

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

Author

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

Run this code
v1 <- c(1, 1, 3)
v2 <- c(3, 1, 3)
get_3d_cross_prod(v1, v2)

Run the code above in your browser using DataLab