public Point getEndPoint() { return new Point( new CoordinateArraySequence( new Coordinate[] { new Coordinate( controlPoints[controlPoints.length - 2], controlPoints[controlPoints.length - 1]) }), getFactory()); }
public Point getStartPoint() { return new Point( new CoordinateArraySequence( new Coordinate[] {new Coordinate(controlPoints[0], controlPoints[1])}), getFactory()); }
public Point getInteriorPoint() { int idx = controlPoints.length / 2; return new Point( new CoordinateArraySequence( new Coordinate[] { new Coordinate(controlPoints[idx], controlPoints[idx + 1]) }), getFactory()); }
/** * Creates a Point using the given CoordinateSequence; a null or empty * CoordinateSequence will create an empty Point. * * @param coordinates a CoordinateSequence (possibly empty), or null * @return the created Point */ public Point createPoint(CoordinateSequence coordinates) { return new Point(coordinates, this); }
new Point( new LiteCoordinateSequence( referenceImage.getWidth() / 2d, referenceImage.getHeight() / 2d),
protected Point copyInternal() { return new Point(coordinates.copy(), factory); }