cz.cuni.amis.pogamut.defcon.utils
Class PolygonUtils

Package class diagram package PolygonUtils
java.lang.Object
  extended by cz.cuni.amis.pogamut.defcon.utils.PolygonUtils

public class PolygonUtils
extends Object

Utilities for polygons. Experimental.

Author:
Radek 'Black_Hand' Pibil

Constructor Summary
PolygonUtils()
           
 
Method Summary
static LinkedList<Location> resizePoly(List<Location> poly, double offset)
          Shrinks or enlarges a polygon.
static LinkedList<Location> resizePoly2(LinkedList<Location> poly, double offset)
           
static LinkedList<Location> resizePoly3(LinkedList<Location> poly, double offset)
           
static Location[] resizePoly3(Location[] poly, double offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonUtils

public PolygonUtils()
Method Detail

resizePoly

public static LinkedList<Location> resizePoly(List<Location> poly,
                                              double offset)
Shrinks or enlarges a polygon.

Parameters:
poly -
offset -
Returns:

resizePoly2

public static LinkedList<Location> resizePoly2(LinkedList<Location> poly,
                                               double offset)

resizePoly3

public static LinkedList<Location> resizePoly3(LinkedList<Location> poly,
                                               double offset)

resizePoly3

public static Location[] resizePoly3(Location[] poly,
                                     double offset)


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.