All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.math.geom2d.circulinear.buffer.CapFactory Maven / Gradle / Ivy

Go to download

JavaGeom - The aim of JavaGeom is to provide methods to easily perform geometric computations, such as intersections of lines, clipping of polygons, transformation shapes, perimeter and area computations... This is a binary & source redistribution of the original, unmodified JavaGeom library originating from: "http://sourceforge.net/projects/geom-java/files/javaGeom/javaGeom%200.11.1/". The purpose of this redistribution is to make the library available to other Maven projects.

The newest version!
/**
 * File: 	CapFactory.java
 * Project: javageom-buffer
 * 
 * Distributed under the LGPL License.
 *
 * Created: 4 janv. 2011
 */
package math.geom2d.circulinear.buffer;

import math.geom2d.Point2D;
import math.geom2d.Vector2D;
import math.geom2d.circulinear.CirculinearContinuousCurve2D;


/**
 * Generates a cap at the end of an open curve.
 * @author dlegland
 *
 */
public interface CapFactory {

	public CirculinearContinuousCurve2D createCap(Point2D center, 
			Vector2D direction, double dist);
	
	public CirculinearContinuousCurve2D createCap(Point2D p1, Point2D p2);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy