public class SplitOperationUtils extends 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 Double[] |
getLineParams(Point point,
Point nextPoint) |
static Point |
getMidPoint(Point a,
Point b,
int subtype) |
static SplitOperation |
getOperation(Primitive geom) |
static Point[] |
getPerpendicular(Double m,
Double b,
Point perp,
int subtype) |
static boolean |
intersects(Curve curve,
Point projectedPoint)
Method use to know what segment intersect with projected point.
|
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
CreateGeometryException
public static Point createPoint(double x, double y, int subtype) throws CreateGeometryException
CreateGeometryException
public static Point[] getPerpendicular(Double m, Double b, Point perp, int subtype) throws CreateGeometryException
CreateGeometryException
public static Point getIntersection(Point[] lineA, Point[] lineB, int subtype) throws CreateGeometryException
CreateGeometryException
public static double getAngle(Point start, Point end) throws GeometryOperationNotSupportedException, GeometryOperationException
public static Point getCenterOfCurve(Point p1, Point p2, Point p3, Point p4) throws CreateGeometryException
CreateGeometryException
public static Point getCenterOfCurve(Point p1, Point p2, Point p3) throws CreateGeometryException
CreateGeometryException
public static boolean intersects(Curve curve, Point projectedPoint) throws GeometryOperationNotSupportedException, GeometryOperationException
curve
- segment of lineprojectedPoint
- of lineGeometryOperationNotSupportedException
GeometryOperationException