Create a 3 dimensional vector

m_vector3(x = 0, y = 0, z = 0)

Arguments

x

x coordinate, character and numeric are both accepted.

y

y coordinate, character and numeric are both accepted.

z

z coordinate, character and numeric are both accepted.

Value

3 dimensional list object

Examples

library(r3dmol)
m_vector3(1, 2, 3)
#> $x
#> [1] 1
#> 
#> $y
#> [1] 2
#> 
#> $z
#> [1] 3
#> 
#> attr(,"class")
#> [1] "Vector3"