get_projection: Get projection matrix

View source: R/main.R

get_projectionR Documentation

Get projection matrix

Description

Get projection matrix from persp() function without producing plot. The angles of projection are given by theta (rotation) and phi (elevation), and the strength of perspective transformation is given by d.

Usage

get_projection(x_lim, y_lim, z_lim, theta, phi, d = 2)

Arguments

x_lim, y_lim, z_lim

limits of persp() plot.

theta

angle of rotation (degrees).

phi

angle of elevation (degrees).

d

strength of perspective transformation.


bobverity/bobfunctions2 documentation built on July 4, 2023, 8:55 p.m.