Math::Zap::Rectangle

Math::Zap::Rectangle is a Perl module that generates rectangles in 3d space.
Download

Math::Zap::Rectangle Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Philip R. Brenan
  • Publisher web site:
  • http://search.cpan.org/~prbrenan/Math-Zap-1.07/lib/Math/Zap/Triangle2.pm

Math::Zap::Rectangle Tags


Math::Zap::Rectangle Description

Math::Zap::Rectangle is a Perl module that generates rectangles in 3d space. Math::Zap::Rectangle is a Perl module that generates rectangles in 3d space.SynopsisExample t/rectangle.t #_ Rectangle __________________________________________________________ # Test 3d rectangles # philiprbrenan@yahoo.com, 2004, Perl License #______________________________________________________________________ use Math::Zap::Rectangle; use Math::Zap::Vector; use Test::Simple tests=>3; my ($a, $b, $c, $d) = (vector(0, 0, +1), vector(0, -1.9, -1), vector(0, -2.0, -1), vector(0, -2.1, -1) ); my $r = rectangle (vector(-1,-1, 0), vector( 2, 0, 0), vector( 0, 2, 0) ); ok($r->intersects($a, $b) == 1); ok($r->intersects($a, $c) == 1); ok($r->intersects($a, $d) == 0);Requirements:· Perl Requirements: · Perl


Math::Zap::Rectangle Related Software