ell.conj: Find conjugate axes or tangent lines to ellipse

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

View source: R/ell.R

Description

Find conjugate axes or tangent lines to ellipse

Usage

1
ell.conj(center, shape, dir, radius = 1, len = 1)

Arguments

center

center of the ellipse

shape

shape matrix of the ellipse

dir

a vector specifying a direction along which to find conjugate axes or tangent lines

radius
len

Details

None yet

Value

Returns a list with the following components

u
v
tan1
tan2
tan3
tan4
center

ellipse center

Author(s)

Georges Monette

See Also

uv

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
##---- 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( center, shape, dir, radius = 1, len = 1) {
            # returns conjugate axes or tangent lines to ellipse
            vecs <- uv( shape, dir, radius)
            list( u = list( center-len*vecs$u, center+len*vecs$u),
                  v = list( center-len*vecs$v, center+len*vecs$v),
                  tan1 = list( center + vecs$u - len*vecs$v,center + vecs$u+ len*vecs$v),
                  tan2 = list( center - vecs$u - len*vecs$v,center - vecs$u+ len*vecs$v),
                  tan3 = list( center + vecs$v - len*vecs$u,center + vecs$v+ len*vecs$u),
                  tan4 = list( center - vecs$v - len*vecs$u,center - vecs$v+ len*vecs$u),
                  center = center)
    }

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