Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 49.594.345 Times

Math::Zap::Triangle2 1.07

  Date Added: September 03, 2010  |  Visits: 740

Math::Zap::Triangle2

Report Broken Link
Printer Friendly Version


Product Homepage
Download (89 downloads)



Math::Zap::Triangle2 - triangles in 2D space. Synopsis Example t/triangle2.t #_ Triangle ___________________________________________________________ # Test 2d triangles # philiprbrenan@yahoo.com, 2004, Perl License #______________________________________________________________________ use Math::Zap::Triangle2; use Math::Zap::Vector2; use Test::Simple tests=>27; $a = triangle2 (vector2(0, 0), vector2(2, 0), vector2(0, 2), ); $b = triangle2 (vector2( 0, 0), vector2( 4, 0), vector2( 0, 4), ); $c = triangle2 (vector2( 0, 0), vector2(-4, 0), vector2( 0, -4), ); $d = $b - vector2(1,1); $e = $c + vector2(1,1); #print "a=$anb=$bnc=$cnd=$dne=$en"; ok($a->containsPoint(vector2( 1, 1))); ok($a->containsPoint(vector2( 1, 1))); ok($b->containsPoint(vector2( 2, 0))); ok($b->containsPoint(vector2( 1, 0))); ok($c->containsPoint(vector2(-1, 0))); ok($c->containsPoint(vector2(-2, 0))); ok($d->containsPoint(vector2( 1, -1))); ok(!$a->containsPoint(vector2( 9, 1))); ok(!$a->containsPoint(vector2( 1, 9))); ok(!$b->containsPoint(vector2( 2, 9))); ok(!$b->containsPoint(vector2( 9, 0))); ok(!$c->containsPoint(vector2(-9, 0))); ok(!$c->containsPoint(vector2(-2, 9))); ok(!$d->containsPoint(vector2( 9, -1))); ok( $a->containsPoint(vector2(0.5, 0.5))); ok(!$a->containsPoint(vector2( -1, -1))); ok(vector2(1,2)->rightAngle == vector2(-2, 1)); ok(vector2(1,0)->rightAngle == vector2( 0, 1)); ok($a->area == 2); ok($c->area == 8); eval { triangle2(vector2(0, 0), vector2(3, -6), vector2(-3, 6))}; ok($@ =~ /^Narrow triangle2/, Narrow triangle); $t = triangle2(vector2(0,0),vector2(0,10),vector2( 10,0)); $T = triangle2(vector2(0,0),vector2(0,10),vector2(-10,10))+vector2(5, -2); @p = $t->ring($T); #print "$_n" for(@p); ok($p[0] == vector2(0, 8), Ring 0); ok($p[1] == vector2(2, 8), Ring 1); ok($p[2] == vector2(5, 5), Ring 2); ok($p[3] == vector2(5, 0), Ring 3); ok($p[4] == vector2(3, 0), Ring 4); ok($p[5] == vector2(0, 3), Ring 5);.

Requirements: No special requirements
Platforms: Linux
Keyword: A- Libraries Programming Ring
Users rating: 0/10

License: Freeware Size: 63.49 KB
USER REVIEWS
More Reviews or Write Review


MATH::ZAP::TRIANGLE2 RELATED
Libraries  -  Peers 0.20050929
Peers is a distributed programming toolkit designed for building peer-to-peer systems. The toolkit is a hybrid language project which offers low level primitives for managing concurrency and communication. Using these primitives, complex P2P...
215.04 KB  
Libraries  -  Allegro 4.2.2 / 4.3.1
Allegro is a game programming library for C/C++ developers distributed freely, supporting the following platforms: DOS, Unix (Linux, FreeBSD, Irix, Solaris, Darwin), Windows, QNX, BeOS and MacOS X. Allegro project provides many functions for...
2.83 MB  
Libraries  -  ZK 2.4.1
ZK is an AJAX/XUL Web framework designed to enable Web applications to have both rich user experiences and a simple programming model. ZK includes an AJAX-based event-driven engine to automate interactivity and a rich set of XUL-based components....
6.9 MB  
Business  -  Intro to Bash Programming HOWTO 0.8
Intro to Bash Programming HOWTO is a bash programming tutorial. The Intro to Bash Programming HOWTO is meant for newbies who wish to learn how to write shell scripts for bash, the GNU Boure-Again shell. It contains several samples. It is very...
 
Development Editors  -  Programming without coding technology 1.8
Programming without coding technology (PWCT) is a visual programming system enables the developers to develop win32 application 100% without coding at all. Users will be able to develop several application without any coding knowledge: database,...
 
Libraries  -  Aapl C++ Template Library 2.14
Aapl is a C++ template library for generic programming. Aapl supports different generic programming paradigms by providing variations of standard data structures. For example, a by-value linked list template may be used to store a user supplied...
122.88 KB  
Libraries  -  Acme::EyeDrops 1.51
Acme::EyeDrops is a Perl module for visual programming in Perl. SYNOPSIS use Acme::EyeDrops qw(sightly); print sightly( { Shape => camel, SourceFile => eyesore.pl } ); Acme::EyeDrops converts a Perl program into an equivalent one, but...
102.4 KB  
Libraries  -  GiNaC 1.3.6
GiNaC is an iterated and recursive acronym for GiNaC is Not a CAS, where CAS stands for Computer Algebra System. It is designed to allow the creation of integrated systems that embed symbolic manipulations together with more established areas of...
778.24 KB  
Libraries  -  Surumi 0.0.1
Surumi project is a modular event-driven programming framework. It offers a generic and uniform interface. You certainly heard of event-driven programming, but in any window system, those events are usually bound on ``window objects and very...
245.76 KB  
Development Editors  -  thinBasic programming language 1.8.9.0
thinBasic is a Basic Programming Language Interpreter. Fast, reliable, well documented, features rich, easy to use and to master Basic Language. No compilation, no intermediate code, just plain text script files analyzed and executed on the fly.
12.5 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB