Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    Math::Geometry::Construction 0.020

    Download button

    No screenshots available
    Downloads: 92  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Lutz Gehlen | More programs
    Perl Artistic License / FREE
    February 12th, 2012, 18:44 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Math::Geometry::Construction description

    Intersecting lines and circles

    Math::Geometry::Construction is a Perl module with intersecting lines and circles.

    This is alpha software. The API is likely to change, input checks and documentation are sparse, the test suite barely exists. But release early, release often, so here we go.

    So far, the development has been fast and focused on adding features. On the downside, the code has to be considered fragile. Please report any problems you encounter.

    SYNOPSIS

     use Math::Geometry::Construction;

     my $construction = Math::Geometry::Construction->new
     (background => 'white');
     my $p1 = $construction->add_point('x' => 100, 'y' => 150, hidden => 1);
     my $p2 = $construction->add_point('x' => 120, 'y' => 150, hidden => 1);
     my $p3 = $construction->add_point('x' => 200, 'y' => 50);
     my $p4 = $construction->add_point('x' => 200, 'y' => 250);

     my $l1 = $construction->add_line(extend => 10,
     label => 'g',
     label_offset_y => 13,
     support => [$p1, $p2]);
     my $l2 = $construction->add_line(support => [$p3, $p4]);

     my $i1 = $construction->add_derivate('IntersectionLineLine',
     input => [$l1, $l2]);
     my $p5 = $i1->create_derived_point
     (position_selector => ['indexed_position', [0]],
     label => 'S',
     label_offset_x => 5,
     label_offset_y => -5);

     print $construction->as_svg(width => 800, height => 300)->xmlify;



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    intersecting lines | intersecting circles | Perl module | Perl | intersecting | lines



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM