E.phi: Incline horizontal plane by phi degree

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/E.phi.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
##---- 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))
  }

p3d documentation built on May 2, 2019, 5:25 p.m.