Purpose:

This page helps to understand the variables and equations of the shapes in presetShapeDefinitions.xml file.

I used it to build some of the shapes in PPTXjs plugin.


Enter Shape name: Or select :

Constants values:

h - the height of the shape.
w - the width of the shape.

l = 0 ;
t = 0 ;
b = h ;
r = w ;
hc = w/2 ;
vc = h/2 ;
hd2 = h/2 ;
hd3 = h/3 ;
hd4 = h/4 ;
hd5 = h/5 ;
hd6 = h/6 ;
hd8 = h/8 ;
wd2 = w/2 ;
wd3 = w/3 ;
wd4 = w/4 ;
wd5 = w/5 ;
wd6 = w/6 ;
wd8 = w/8 ;
wd10 = w/10 ;
ls = max(w,h) ;
ss = min(w,h) ;
ssd2 = ss/2 ;
ssd4 = ss/4 ;
ssd6 = ss/6 ;
ssd8 = ss/8 ;
ssd16 = ss/16 ;
ssd32 = ss/32 ;

cd2 = 10800000; (180°).
cd4 = 5400000; (90°).
cd8 = 2700000; (45°).
3cd4 = 16200000; (270°).
3cd8 = 8100000; (135°).
5cd8 = 13500000; (225°).
7cd8 = 18900000; (315°).

note:

  1. The units of angles (cd2,cd4...) are in 60,000ths of a degree (10800000 = 180°).
  2. All none angle Units are usually measured in EMU.
    1EMU=(1/914400) inch
    1EMU=(1/360000) cm
    Pixel = EMU * 96/914400.