File:Area of triangle.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file (SVG file, nominally 146 × 98 pixels, file size: 4 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]

SVG version of Area of triangle.JPG

 
The SVG code is valid.
 
This vector image was created with MetaPost.

Source code

InfoField

PostScript code

u := 1cm;

pair A,B,C,D,E;
numeric height, width;
height := 2.8;
width := 4.5;

B := origin;
A := (B+(0,height))*u;
D := (B+(width,0))*u;
E := (xpart(D),ypart(A));
C := point 0.6length(B--D) of (B--D);

path rect, tri;
rect := B -- A -- E -- D;
tri := B -- C -- E .. cycle;

draw rect dashed evenly;
draw D -- C;
draw tri withpen pencircle scaled 1.2pt withcolor 0.5blue;
fill tri withcolor (0,1,1);

pair h;
h := point 0.5length(E--D) of (E--D);

label.llft(btex B etex, B);
label.urt(btex E etex, E);
label.lrt(btex D etex, D);
label.bot(btex C etex, C);
label.rt(btex $h$ etex, h);

Licensing

[edit]
© The copyright holder of this file allows anyone to use it for any purpose, provided that the copyright holder is properly attributed. Redistribution, derivative work, commercial use, and all other use is permitted.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current15:49, 15 May 2010Thumbnail for version as of 15:49, 15 May 2010146 × 98 (4 KB)Wmheric (talk | contribs)SVG version of File:Area_of_triangle.JPG Category:Triangle geometry

The following page uses this file:

File usage on other wikis

The following other wikis use this file: