get_3d_angle: Compute an angle in 3D space In pathviewr: Wrangle, Analyze, and Visualize Animal Movement Data

Description

Compute an angle in 3D space

Usage

 `1` ```get_3d_angle(x1, y1, z1, x2, y2, z2, x3, y3, z3) ```

Arguments

 `x1` x-coordinate of first point `y1` y-coordinate of first point `z1` z-coordinate of first point `x2` x-coordinate of second point (vertex) `y2` y-coordinate of second point (vertex) `z2` y-coordinate of second point (vertex) `x3` x-coordinate of third point `y3` y-coordinate of third point `z3` z-coordinate of third point

Details

Everything supplied to arguments must be singular numeric values. The second point (x2, y2, z2) is treated as the vertex, and the angle between the three points in 3D space is computed.

Value

A numeric vector that provides the angular measurement in degrees.

Author(s)

Vikram B. Baliga

Other mathematical functions: `calc_min_dist_v()`, `deg_2_rad()`, `find_curve_elbow()`, `get_2d_angle()`, `get_3d_cross_prod()`, `get_dist_point_line()`, `get_velocity()`, `rad_2_deg()`
 ```1 2 3 4``` ```get_3d_angle( 0, 1, 0, 0, 0, 0, 1, 0, 0) ```