plugins.big.bigsnakeutils.shape.utils
Class Geometry2D

java.lang.Object
  extended by plugins.big.bigsnakeutils.shape.utils.Geometry2D

public class Geometry2D
extends java.lang.Object

Class that encapsulates some geometric manipulation procedures.

Version:
May 3, 2014
Author:
Ricard Delgado-Gonzalo (ricard.delgado@gmail.com)

Constructor Summary
Geometry2D()
           
 
Method Summary
static java.awt.geom.Point2D.Double[] arcLengthResampling(java.awt.Polygon p, int nPoints)
          Parameterizes a curve to arc-length parameterization with a given number of points.
static java.awt.geom.Point2D.Double[] reverse(java.awt.geom.Point2D.Double[] p)
          Reverses the array of points.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Geometry2D

public Geometry2D()
Method Detail

arcLengthResampling

public static java.awt.geom.Point2D.Double[] arcLengthResampling(java.awt.Polygon p,
                                                                 int nPoints)
Parameterizes a curve to arc-length parameterization with a given number of points.


reverse

public static java.awt.geom.Point2D.Double[] reverse(java.awt.geom.Point2D.Double[] p)
Reverses the array of points.