math_angle_quadrant_vector: Find the angle of a vector

View source: R/math.R

math_angle_quadrant_vectorR Documentation

Find the angle of a vector

Description

Find the angle to the first axis "x" for given vector of coordinates.

Usage

math_angle_quadrant_vector(x)

Arguments

x

vector containing the coordinates. e.g. First x, second y.

Value

Returns Quadrant of vector x in radiants.

Author(s)

Florian Wagner florian.wagner@wagnius.ch

Examples

math_angle_quadrant_vector(c( 1, 1))/pi*180
math_angle_quadrant_vector(c(-1, 1))/pi*180
math_angle_quadrant_vector(c(-1,-1))/pi*180
math_angle_quadrant_vector(c( 1,-1))/pi*180
math_angle_quadrant_vector(c( 0, 1))/pi*180
math_angle_quadrant_vector(c( 0,-1))/pi*180
math_angle_quadrant_vector(c( 1, 0))/pi*180
math_angle_quadrant_vector(c(-1, 0))/pi*180

wagnius-GmbH/slvwagner documentation built on Jan. 19, 2025, 7:10 a.m.