summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 77ab3a7)
raw | patch | inline | side by side (parent: 77ab3a7)
author | Kris <Kris.De.Gussem@hotmail.com> | |
Sat, 18 Sep 2010 07:40:46 +0000 (09:40 +0200) | ||
committer | Kris <Kris.De.Gussem@hotmail.com> | |
Sat, 18 Sep 2010 07:40:46 +0000 (09:40 +0200) |
share/extensions/draw_from_triangle.py | patch | blob | history |
index 38843210c885832e3fdd5389acc95eae73e0a140..12482452892e2e92e69a56fe88a8829cc9d9de35 100644 (file)
return 1/tan(x)
def report_properties( params ):#report to the Inkscape console using errormsg
- inkex.errormsg(_("Side Length 'a'/px: " + str( params[0][0] ) ))
- inkex.errormsg(_("Side Length 'b'/px: " + str( params[0][1] ) ))
- inkex.errormsg(_("Side Length 'c'/px: " + str( params[0][2] ) ))
- inkex.errormsg(_("Angle 'A'/radians: " + str( params[1][0] ) ))
- inkex.errormsg(_("Angle 'B'/radians: " + str( params[1][1] ) ))
- inkex.errormsg(_("Angle 'C'/radians: " + str( params[1][2] ) ))
- inkex.errormsg(_("Semiperimeter/px: " + str( params[4][1] ) ))
- inkex.errormsg(_("Area /px^2: " + str( params[4][0] ) ))
+ inkex.errormsg(_("Side Length 'a' (px): " + str( params[0][0] ) ))
+ inkex.errormsg(_("Side Length 'b' (px): " + str( params[0][1] ) ))
+ inkex.errormsg(_("Side Length 'c' (px): " + str( params[0][2] ) ))
+ inkex.errormsg(_("Angle 'A' (radians): " + str( params[1][0] ) ))
+ inkex.errormsg(_("Angle 'B' (radians): " + str( params[1][1] ) ))
+ inkex.errormsg(_("Angle 'C' (radians): " + str( params[1][2] ) ))
+ inkex.errormsg(_("Semiperimeter (px): " + str( params[4][1] ) ))
+ inkex.errormsg(_("Area (px^2): " + str( params[4][0] ) ))
return