A closed planar quadrilateral with opposite sides of equal lengths and , and with four right angles. A square is a degenerate rectangle with a=b The area of the rectangle is A=ab and its polygon diagonals p and q are of length [latex] p = q = \sqrt{(a{^2}+b{^2})} [/latex] A rectangle has a circumcircle with …
Tag Archives: rectangle
rectangle with cairo
/* Jeffrin Jose Licensed GPL v3 Copyright August 2010 GPL –> http://www.gnu.org/copyleft/gpl.html */ #include int main () { cairo_surface_t *surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 800, 600); cairo_t *cr = cairo_create (surface); cairo_set_font_size (cr, 32.0); cairo_set_source_rgb (cr, 0, 0, 0); cairo_set_line_width(cr,1.0); cairo_rectangle(cr,30,20,67,70); cairo_stroke(cr); cairo_destroy (cr); cairo_surface_write_to_png (surface, “hello.png”); cairo_surface_destroy (surface); return 0; }