viewAxis: Set the View of the 'rgl' Scene

Description Usage Arguments Details See Also Examples

Description

Set the view of the current ‘rgl’ scene aligning one vector perpendicularly to the screen and placing another in the horizontal plan.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15

Arguments

V1

a length 3 numeric vector.

V2

a length 3 numeric vector.

cryst1

an object of class ‘cryst1’.

x

an R object containing atomic coordinates.

m

a numeric vector containing atomic masses.

Details

viewAxis set the view of the current rgl scene (by setting UserMatrix. See par3d for more details) so that V1 is perpendicular to the screen and V2 is in the horizontal plan. The other functions documented here are helper functions calling viewAxis to set the view using particular Cartesian or lattice vectors. For functions viewAB, viewBC and viewCA a ‘cryst1’ object has to be specifyed to defined the lattice vectors used to set the view. The function viewInertia computes the inertia tensor from atomic coordinates and masses (see inertia) and set the view to its eigen vectors basis set.

See Also

visualize, cell.coords, par3d, rgl.open

Examples

1
2
3
4
5
6
7
8
x <- read.pdb(system.file("examples/PCBM_ODCB.pdb",package="Rpdb"))
visualize(x, mode = NULL)
viewAB(x$cryst1)

C70 <- read.pdb(system.file("examples/C70.pdb",package="Rpdb"))
visualize(C70, mode = NULL)
viewXY()
viewInertia(C70)

Rpdb documentation built on May 2, 2019, 2:11 p.m.