E.phi: Incline horizontal plane by phi degree

View source: R/E.phi.R

E.phiR Documentation

Incline horizontal plane by phi degree

Description

Calculates the matrix to incline the horizontal plane of a 3D plot by phi degree

Usage

E.phi(phi)

Arguments

phi

Angle, in degrees.

Details

The userMatrix for spinning has the form E.phi(phi) %*% S.theta(theta)

Value

Returns the 4 x 4 rotation matrix

Author(s)

Georges Monette

See Also

S.theta, ~~~

Examples

##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function( phi ) {
    # incline horizontal plane by phi degrees
    # note that userMatrix for spinning has form E.phi %*% S.theta
    phi = phi *2*pi/360
    cbind(c(1,0,0,0), c(0,cos(phi),sin(phi),0),  c(0,-sin(phi), cos(phi),0), c(0,0,0,1))
  }

gmonette/p3d documentation built on Nov. 16, 2023, 11:31 p.m.