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 50.477.934 Times

Math::Bezier::Convert 0.02

  Date Added: March 17, 2010  |  Visits: 1.185

Math::Bezier::Convert

Report Broken Link
Printer Friendly Version


Product Homepage
Download (105 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
MATH::BEZIER::CONVERT RELATED
Development Tools  -  Approximation of Circle Using Cubic Bezier Curve 1.0
(1) CubicBezier1.m : Evaluates Cubic Bezier Curve for given four Control Points and interval.(2) PlotBezier1.m : Plots Bezier Curve, Control Points, Control Polygon(3) TestCircleApproxByCubicBezier.m : Test Program. Pass Control Points that...
122.88 KB  
Development Tools  -  My Bezier 1.0
This is a routine used for constructing Bezier Curves for a given set of control points.It also constructs the sub-divided Bezier Curve specified by the given limits of parameter values, along with the control points for the same.
10 KB  
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  -  Statistics::ROC 0.04
Statistics::ROC is a Perl module with receiver-operator-characteristic (ROC) curves with nonparametric confidence bounds. SYNOPSIS use Statistics::ROC; my ($y) = loggamma($x); my ($y) = betain($x, $p, $q, $beta); my ($y) = Betain($x, $p,...
17.41 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  
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