Main > Programming > Libraries >

Math::Bezier::Convert 0.02

Math::Bezier::Convert 0.02

Sponsored Links

Math::Bezier::Convert 0.02 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.006 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 1185
Date added: 2006-08-03
Publisher: Yasuhiro Sasama

Math::Bezier::Convert 0.02 description

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.

Math::Bezier::Convert 0.02 Screenshot

Advertisements

Math::Bezier::Convert 0.02 Keywords

Bookmark Math::Bezier::Convert 0.02

Hyperlink code:
Link for forum:

Math::Bezier::Convert 0.02 Copyright

WareSeeker periodically updates pricing and software information of Math::Bezier::Convert 0.02 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Math::Bezier::Convert 0.02 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Math::Macopt is a Perl wrapper for macopt++, which is a conjugate gradient library. Free Download
Convert::Base32 is a Perl module for encoding and decoding of base32 strings. Free Download
Math::Calc::Euro is a Perl module to convert between EUR and the old currencies. Free Download
Math::ODE Perl module allows you to solve N-th Order Ordinary Differential Equations with as little pain as possible. Free Download
Wily::Connect is a Perl module that connects to a running Wily text editor. Free Download
Sman::Man::Convert is a Perl module to convert manpages to XML for sman-update and sman. Free Download
Math::TotalBuilder::Common is a Perl module with common unit sets for building totals. Free Download
Math::Fraction is a Perl module to manipulate exact fractions. Free Download