public class SplitOperationUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Point |
createPoint(double x,
double y,
int subtype) |
static double |
getAngle(Point start,
Point end) |
static Point |
getCenterOfCurve(Point p1,
Point p2,
Point p3) |
static Point |
getCenterOfCurve(Point p1,
Point p2,
Point p3,
Point p4) |
static Point |
getIntersection(Point[] lineA,
Point[] lineB,
int subtype) |
static java.lang.Double[] |
getLineParams(Point point,
Point nextPoint) |
static Point |
getMidPoint(Point a,
Point b,
int subtype) |
static SplitOperation |
getOperation(Primitive geom) |
static Point[] |
getPerpendicular(java.lang.Double m,
java.lang.Double b,
Point perp,
int subtype) |
static boolean |
intersects(Curve curve,
Point projectedPoint)
Method use to know what segment intersect with projected point.Due to
accuracy of doubles it is necessary to create a buffer of line to know if
it intersects.
|
static void |
register(SplitOperation operation,
int geometryType) |
public static void register(SplitOperation operation, int geometryType)
public static SplitOperation getOperation(Primitive geom)
public static Point getMidPoint(Point a, Point b, int subtype) throws CreateGeometryException
CreateGeometryExceptionpublic static Point createPoint(double x, double y, int subtype) throws CreateGeometryException
CreateGeometryExceptionpublic static Point[] getPerpendicular(java.lang.Double m, java.lang.Double b, Point perp, int subtype) throws CreateGeometryException
CreateGeometryExceptionpublic static Point getIntersection(Point[] lineA, Point[] lineB, int subtype) throws CreateGeometryException
CreateGeometryExceptionpublic static double getAngle(Point start, Point end) throws GeometryOperationNotSupportedException, GeometryOperationException
public static Point getCenterOfCurve(Point p1, Point p2, Point p3, Point p4) throws CreateGeometryException
CreateGeometryExceptionpublic static Point getCenterOfCurve(Point p1, Point p2, Point p3) throws CreateGeometryException
CreateGeometryExceptionpublic static boolean intersects(Curve curve, Point projectedPoint) throws GeometryOperationNotSupportedException, GeometryOperationException
curve - segment of lineprojectedPoint - of lineGeometryOperationNotSupportedExceptionGeometryOperationException