makeAxis: Generate a 3-D unit axis vector.

Description Usage Arguments Value Author(s)

View source: R/makeAxis.R

Description

Creates a unit 3-vector indicating an axis direction. Various ways of specifying the direction in 3D are allowed.

Usage

1
makeAxis(dir, ref = NULL)

Arguments

dir

direction of antenna axis, which can be specified several ways:

  1. "horizontal": the elements are parallel to the ground and perpendicular to the reference axis.

  2. "vertical": the elements are vertical

  3. a single number: if ref is specified, then dir is the angle of rotation of the elements when viewed from the antenna base (wider end) toward the antenna tip. Angle is measured clockwise in degrees, starting at 0 for horizontal. So 0 is the same as "horizontal" and 90 is the same as "vertical".

    If ref is NULL, then dir is the azimuth angle (degrees clockwise from North) of an axis parallel to the ground.

  4. a 2-vector: this represents azimuth and elevation angles (degrees clockwise from North, degrees above the horizon) of the axis.

  5. a 3-vector: this is a vector giving the axis as a direction vector (x, y, z).

ref:

reference axis. If not null, must be a unit 3-vector.

Value

a unit 3-vector giving the actual direction of the axis

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


jbrzusto/sensorgnome-R-package documentation built on May 18, 2019, 9:19 p.m.