Skip to content

fnicollet/simplify-as3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

simplify-as3

simplify-as3 is a simple port of simplify.js by Vladimir Agafonkin (https://github.com/mourner/simplify-js)

Usage

import flash.geom.Point;
import simplify.Simplify;

var points:Vector.<Point> = ...;
var tolerance:Number = 10;
var highQuality:Boolean = false;
var simplified:Vector.<Point> = Simplify.simplify(points, tolerance, highQuality);

points: An Vector of Points. If you have an Array, use Vector.(someArray)

tolerance (optional, 1 by default): Affects the amount of simplification that occurs (the smaller, the less simplification).

highestQuality (optional, false by default): Flag to exclude the distance pre-processing. Produces higher quality results, but runs slower.

About

simplify-as3 is a simple port of simplify.js by Vladimir Agafonkin (https://github.com/mourner/simplify-js)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published