1# Oval objects
2
3An oval is a box in which the narrow ends are formed by semicircles.
4If the height is less than the width (the default) then the semicircles
5are on the left and right.  If the width is less than the height, then the
6semicircles are on the top and bottom:
7
8~~~~ pikchr indent
9A: oval thick
10X0: line thin color gray left 70% from 2mm left of (A.w,A.n)
11X1: line same from 2mm left of (A.w,A.s)
12text "height" at (7/8<previous.start,previous.end>,1/2<X0,X1>)
13line thin color gray from previous text.n up until even with X0 ->
14line thin color gray from previous text.s down until even with X1 ->
15X2: line thin color gray down 50% from 2mm below (A.w,A.s)
16X3: line thin color gray down 50% from 2mm below (A.e,A.s)
17text "width" at (1/2<X2,X3>,6/8<X2.start,X2.end>)
18line thin color gray from previous text.w left until even with X2 ->
19line thin color gray from previous text.e right until even with X3 ->
20
21A: oval thick wid A.ht ht A.wid at 2.0*A.wid right of A
22X0: line thin color gray left 70% from 2mm left of (A.w,A.n)
23X1: line same from 2mm left of (A.w,A.s)
24text "height" at (7/8<previous.start,previous.end>,1/2<X0,X1>)
25line thin color gray from previous text.n up until even with X0 ->
26line thin color gray from previous text.s down until even with X1 ->
27X2: line thin color gray down 50% from 2mm below (A.w,A.s)
28X3: line thin color gray down 50% from 2mm below (A.e,A.s)
29text "width" at (1/2<X2,X3>,6/8<X2.start,X2.end>)
30line thin color gray from previous text.w left until even with X2 ->
31line thin color gray from previous text.e right until even with X3 ->
32~~~~
33
34An oval works like a [box](./boxobj.md) in which the radius is
35set to half the minimum of the height and width.  An oval where the
36width and height are the same is a [circle](./circleobj.md)
37
38
39## Boundary points:
40
41~~~~ pikchr indent
42A: oval thin
43dot ".c" below at A
44dot ".n" above at A.n
45dot " .ne" ljust above at A.ne
46dot " .e" ljust at A.e
47dot " .se" ljust below at A.se
48dot ".s" below at A.s
49dot ".sw " rjust below at A.sw
50dot ".w " rjust at A.w
51dot ".nw " rjust above at A.nw
52
53A: oval thin  wid A.ht ht A.wid at 2.0*A.wid right of A
54dot ".c" below at A
55dot ".n" above at A.n
56dot " .ne" ljust above at A.ne
57dot " .e" ljust at A.e
58dot " .se" ljust below at A.se
59dot ".s" below at A.s
60dot ".sw " rjust below at A.sw
61dot ".w " rjust at A.w
62dot ".nw " rjust above at A.nw
63
64
65~~~~
66