Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

vectorialOperations

Basic Vectorial Operations


Description

Basic vectorial operations such as scalar product and vectorial product

Usage

dotProd(U, V)

vectNorm(U)

rotVect(U, n = 1)

vectProd(U, V)

Arguments

U

a numeric vector of length 3.

V

a numeric vector of length 3.

n

an integer.

Value

  • dotProct return a single element numeric vector.

  • vectNorm return a single element numeric vector.

  • rotVect return a numeric vector of length 3.

  • vectProct return a numeric vector of length 3.

See Also

Examples

Vx <- c(3,0,0)
vectNorm(Vx)
Vx <- Vx/vectNorm(Vx)
Vy <- c(0,1,0)
Vz <- vectProd(Vx, Vy)
print(Vz)

Rpdb

Read, Write, Visualize and Manipulate PDB Files

v2.3
GPL
Authors
Julien Idé
Initial release
2014-02-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.