mirror of
https://github.com/xibyte/jsketcher
synced 2026-01-13 19:51:18 +01:00
39 lines
728 B
Java
39 lines
728 B
Java
package org.poly2tri.geometry.polygon;
|
|
|
|
import org.poly2tri.triangulation.point.TPoint;
|
|
|
|
public class PolygonPoint extends TPoint
|
|
{
|
|
protected PolygonPoint _next;
|
|
protected PolygonPoint _previous;
|
|
|
|
public PolygonPoint( double x, double y )
|
|
{
|
|
super( x, y );
|
|
}
|
|
|
|
public PolygonPoint( double x, double y, double z )
|
|
{
|
|
super( x, y, z );
|
|
}
|
|
|
|
public void setPrevious( PolygonPoint p )
|
|
{
|
|
_previous = p;
|
|
}
|
|
|
|
public void setNext( PolygonPoint p )
|
|
{
|
|
_next = p;
|
|
}
|
|
|
|
public PolygonPoint getNext()
|
|
{
|
|
return _next;
|
|
}
|
|
|
|
public PolygonPoint getPrevious()
|
|
{
|
|
return _previous;
|
|
}
|
|
}
|