sl.vis.shift.rot: Check Visibility, Shift, and Rotate Points

sl.vis.shift.rotR Documentation

Check Visibility, Shift, and Rotate Points

Description

Check the visibility, shift, and rotate points for a spheRlab plot.

Usage

sl.vis.shift.rot(plot.init.res, lon, lat)

Arguments

plot.init.res

a spheRlab plot specifics list as returned by sl.plot.init (or a variant thereof).

lon

a vector of length N specifying the longitudes of the points.

lat

a vector of length N specifying the latitudes of the points.

Details

This function is intended mainly for internal usage.

Value

A list with the following elements:

x

a vector of length N specifying the plot-projection x-coordinates of the points.

y

a vector of length N specifying the plot-projection y-coordinates of the points.

rot.lon

a vector of length N specifying the post-rotation longitudes of the points.

rot.lat

a vector of length N specifying the post-rotation latitudes of the points.

visible

a vector of length N with logical values indicating the visibility of the points.

Note

This function is used by sl.plot.lines, sl.plot.polygon, and sl.plot.text.

Author(s)

Helge Goessling


FESOM/spheRlab documentation built on April 6, 2024, 6:52 p.m.