lipper: Ellipse calculator

Description Usage Arguments Details Value Author(s) References Examples

Description

Return parametric version of ellipse from equation of an ellipse.

Usage

1
lipper(a, b, c, d = 0, f = 0, g = -1)

Arguments

a

numeric

b

numeric

c

numeric

d

numeric

f

numeric

g

numeric

Details

General quadratic equation is, a x^2 + 2 b x y + c y^2 + 2 d x + 2 f y + g = 0

Value

vector=c(ap, bp, phi)

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

References

<http://mathworld.wolfram.com/Ellipse.html>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
LIP = lipper(10, 3, 9)

theta  = seq(from=0, to=2*pi, length=360)

        phi = LIP[3]
        px = LIP[1]*cos(theta)*cos(phi)-  LIP[2]*sin(theta)*sin(phi)
        py = LIP[1]*cos(theta)*sin(phi) + LIP[2]*sin(theta)*cos(phi)


plot(px, py, type='p', asp=1)
lines(px, py)

geophys documentation built on May 1, 2019, 9:26 p.m.