Learn R Programming

espadon (version 1.11.3)

ref.remove: Deletion of a frame of reference in T.MAT

Description

The ref.remove function removes the management of a frame of reference in T.MAT.

Usage

ref.remove(ref.name, T.MAT)

Value

Returns a "t.mat" class object, which no longer contains transfer matrices from or to the ref.pseudo ref.name. ref.cutplane.add.

Arguments

ref.name

Character string, pseudonym of the frame of reference to delete.

T.MAT

"t.mat" class object in which the ref.name frame of reference is to be deleted.

Examples

Run this code
# Adding of the reference frame "ref1_60", which is a 60 degree rotation of 
# reference frame "ref1".
orientation <- c (cos (pi / 3), sin (pi / 3), 0, 
                  -sin (pi / 3), cos (pi / 3), 0)

local.Tmat <- ref.add (src.ref = "ref1", orientation = orientation,
                  new.ref.pseudo = "ref1_60")
str(local.Tmat)

# Removal of  "ref1_60"
local.Tmat <- ref.remove (ref.name =  "ref1_60", T.MAT = local.Tmat)
str(local.Tmat)

Run the code above in your browser using DataLab