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

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

Serving Software Downloads in 976 Categories, Downloaded 29.872.846 Times

Math::Bezier::Convert 0.02

  Date Added: March 17, 2010  |  Visits: 946


Report Broken Link
Printer Friendly Version

Product Homepage
Download (81 downloads)

Math::Bezier::Convert is a Perl module to convert cubic and quadratic bezier each other. SYNOPSIS use Math::Bezier::Convert; @new_cubic = divide_cubic($cx1, $cy1, $cx2, $cy2, $cx3, $cy3, $cx4, $cy4, $t); @new_quad = divide_quadratic($cx1, $cy1, $cx2, $cy2, $cx3, $cy3, $t); @quad = cubic_to_quadratic(@cubic); @cubic = quadratic_to_cubic(@quad); @lines = cubic_to_lines(@cubic); @lines = quadratic_to_lines(@cubic); Math::Bezier::Convert provides functions to convert quadratic bezier to cubic, to approximate cubic bezier to quadratic, and to approximate cubic and quadratic bezier to polyline. Each function takes an array of the coordinates of control points of the bezier curve. Cubic bezier consists of one ANCHOR control point, two DIRECTOR control points, one ANCHOR, two DIRECTORS, ... and the last ANCHOR. Quadratic bezier consists of one ANCHOR, one DIRECTOR, ... and the last ANCHOR. The curve pass over the ANCHOR point, but dose not the DIRECTOR point. Each point consists of X and Y coordinates. Both are flatly listed in the array of the curve, like ($x1, $y1, $x2, $y2, ...). divide_cubic( $cx1, $cy1, $cx2, $cy2, $cx3, $cy3, $cx4, $cy4, $t ) divides one segment of the cubic bezier curve at ratio $t, and returns new cubic bezier which has two segment (7 points). divide_quadratic( $cx1, $cy1, $cx2, $cy2, $cx3, $cy3, $t ) divides one segment of the quadratic bezier curve at ratio $t, and returns new quadratic bezier which has two segment (5 points). cubic_to_quadratic( @cubic ) approximates cubic bezier to quadratic bezier, and returns an array of the control points of the quadratic bezier curve. quadratic_to_cubic( @quadratic ) converts quadratic bezier to cubic bezier, and returns an array of the control points of the cubic bezier curve. cubic_to_lines( @cubic ) approximates cubic bezier to polyline, and returns an array of endpoints. quadratic_to_lines( @cubic ) approximates quadratic bezier to polyline, and returns an array of endpoints..

Requirements: No special requirements
Platforms: Linux
Keyword: Anchor Bezier Bezier Curve Control Points Cubic Curve Director Libraries Mathbezierconvert One Perl Module Points Programming Quadratic
Users rating: 0/10

License: Freeware Size: 6.14 KB
More Reviews or Write Review

Libraries  -  Finance::BDT 0.01
Finance::BDT is a Perl module that implements BDT yield curve model. SYNOPSIS use Finance::BDT; use Data::Dumper my @y = (0, 0.0283, 0.029, 0.0322, 0.0401, 0.0435, 0.0464, 0.0508, 0.0512); ## YTM on strips my $vol = 0.20; ## constant...
4.1 KB  
Libraries  -  Winamp::Control 0.2.1
Winamp::Control is a Perl module to control winamp (over the network). SYNOPSIS use Winamp::Control; use IO::Extended qw(printfln); my $winamp = Winamp::Control->new( host => $opts{host}, port => $opts{port} ); if( my $ver =...
6.14 KB  
Libraries  -  Term::ANSIScreen 1.42
Term::ANSIScreen is a Perl module for terminal control using ANSI escape sequences. SYNOPSIS # qw/:color/ is exported by default, i.e. color() & colored() use Term::ANSIScreen qw/:color :cursor :screen :keyboard/; print setmode(1),...
15.36 KB  
Libraries  -  Perl6::Gather 0.04
Perl6::Gather is a Perl module that implements the Perl 6 gather/take control structure in Perl 5. SYNOPSIS use Perl6::Gather; @list = gather { # Try to extract odd numbers and odd number names... for (@data) { if...
5.12 KB  
Libraries  -  Statistics::SPC 0.1
Statistics::SPC is a Perl module with calculations for Stastical Process Control (SPC). Creates thresholds based on the variability of all data, # of samples not meeting spec, and variablity within sample sets, all from training data. Note:...
11.26 KB  
Libraries  -  Time::Warp 0.5
Time::Warp is a Perl module to control over the flow of time. SYNOPSIS use Time::Warp qw(scale to time); to(time + 5); # 5 seconds ahead scale(2); # make time flow twice normal Our external experience unfolds in 3 1/2 dimensions (time has...
3.07 KB  
Libraries  -  Convert::ASCIInames 1.002
Convert::ASCIInames is a Perl module that includes ASCII names for control characters. SYNOPSIS use Convert::ASCIInames; Convert::ASCIInames::Configure(fallthrough => 1); $name = ASCIIname($character_ordinal); $name =...
11.26 KB  
Libraries  -  Test::WWW::Selenium 1.10
Test::WWW::Selenium is a Perl module to test applications using Selenium Remote Control. SYNOPSIS Test::WWW::Selenium is a subclass of WWW::Selenium that provides convenient testing functions. use Test::More tests => 5; use...
39.94 KB  
Libraries  -  POE::Component::ControlPort::Command 0.01
POE::Component::ControlPort::Command is a Perl module with register control port commands. SYNOPSIS use POE::Component::ControlPort::Command; POE::Component::ControlPort::Command->register( name => test, topic => sample_commands, usage =>...
12.29 KB  
Libraries  -  POE::Component::ControlPort 0.01
POE::Component::ControlPort is a Perl module with network control port for POE applications. SYNOPSIS use POE; use Getopt::Long; use POE::Component::ControlPort; use POE::Component::ControlPort::Command; my @commands = ( { help_text =>...
12.29 KB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.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...
2.73 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