Uses of Class
org.djutils.draw.DrawRuntimeException
-
Packages that use DrawRuntimeException Package Description org.djutils.draw The draw package contains the generic classes for device-independent drawing.org.djutils.draw.line The d1 package provides an interface and different implementations for lines.org.djutils.draw.point The d0 package provides a set of interfaces and implementations of Points.org.djutils.draw.surface The d1 package provides an interface and different implementations for Areas. -
-
Uses of DrawRuntimeException in org.djutils.draw
Methods in org.djutils.draw that throw DrawRuntimeException Modifier and Type Method Description Drawable2dDrawable3d. project()Project the object onto the z=0 plane. -
Uses of DrawRuntimeException in org.djutils.draw.line
Methods in org.djutils.draw.line that throw DrawRuntimeException Modifier and Type Method Description static PolyLine2dBezier. bezier(double epsilon, Point2d... points)Approximate a Bézier curve of degree n with a specified precision.static PolyLine3dBezier. bezier(double epsilon, Point3d... points)Approximate a Bézier curve of degree n with a specified precision.static PolyLine2dBezier. bezier(int size, Point2d... points)Approximate a Bézier curve of degree n.static PolyLine3dBezier. bezier(int size, Point3d... points)Construct a Bézier curve of degree n.static PolyLine2dBezier. bezier(Point2d... points)Approximate a Bézier curve of degree n usingDEFAULT_BEZIER_SIZEpoints.static PolyLine3dBezier. bezier(Point3d... points)Approximate a Bézier curve of degree n usingDEFAULT_BEZIER_SIZEpoints.static PolyLine2dPolyLine2d. concatenate(double tolerance, PolyLine2d... lines)Concatenate several PolyLine2d instances.static PolyLine2dPolyLine2d. concatenate(double tolerance, PolyLine2d line1, PolyLine2d line2)Concatenate two PolyLine2d instances.static PolyLine2dPolyLine2d. concatenate(PolyLine2d... lines)Concatenate several PolyLine2d instances.static PolyLine3dPolyLine3d. concatenate(double tolerance, PolyLine3d... lines)Concatenate several PolyLine3d instances.static PolyLine3dPolyLine3d. concatenate(double tolerance, PolyLine3d line1, PolyLine3d line2)Concatenate two PolyLine3d instances.static PolyLine3dPolyLine3d. concatenate(PolyLine3d... lines)Concatenate several PolyLine3d instances.static Polygon2dConvexHull. convexHullAlshamrani(List<Point2d> list)Implementation of the convex hull algorithm by Reham Alshamrani c.s.; see A Preprocessing Technique for Fast Convex Hull Computation.static Polygon2dConvexHull. convexHullMonotone(List<Point2d> list)Implementation of Andrew's Monotone Chain convex hull algorithm.static PolyLine2dBezier. cubic(double epsilon, Ray2d start, Ray2d end)Approximate a cubic Bézier curve from start to end with two generated control points at half the distance between start and end with specified precision.static PolyLine2dBezier. cubic(double epsilon, Ray2d start, Ray2d end, double shape)Approximate a cubic Bézier curve from start to end with two generated control points at half the distance between start and end with specified precision.static PolyLine2dBezier. cubic(double epsilon, Ray2d start, Ray2d end, double shape, boolean weighted)Approximate a cubic Bézier curve from start to end with two generated control points at half the distance between start and end with specified precision.static PolyLine3dBezier. cubic(double epsilon, Ray3d start, Ray3d end)Approximate a cubic Bézier curve from start to end with two generated control points at half the distance between start and end with specified precision.static PolyLine3dBezier. cubic(double epsilon, Ray3d start, Ray3d end, double shape)Approximate a cubic Bézier curve from start to end with two generated control points at half the distance between start and end with specified precision.static PolyLine3dBezier. cubic(double epsilon, Ray3d start, Ray3d end, double shape, boolean weighted)Approximate a cubic Bézier curve from start to end with two generated control points at half the distance between start and end with specified precision.static PolyLine2dBezier. cubic(double epsilon, Point2d start, Point2d control1, Point2d control2, Point2d end)Approximate a cubic Bézier curve from start to end with two control points with a specified precision.static PolyLine3dBezier. cubic(double epsilon, Point3d start, Point3d control1, Point3d control2, Point3d end)Approximate a cubic Bézier curve from start to end with two control points with a specified precision.static PolyLine2dBezier. cubic(int size, Ray2d start, Ray2d end)Approximate a cubic Bézier curve from start to end with two generated control points at half the distance between start and end.static PolyLine2dBezier. cubic(int size, Ray2d start, Ray2d end, double shape)Approximate a cubic Bézier curve from start to end with two generated control points at half the distance between start and end.static PolyLine2dBezier. cubic(int size, Ray2d start, Ray2d end, double shape, boolean weighted)Approximate a cubic Bézier curve from start to end with two generated control points at half the distance between start and end.static PolyLine3dBezier. cubic(int size, Ray3d start, Ray3d end)Approximate a cubic Bézier curve from start to end with two generated control points at half the distance between start and end.static PolyLine3dBezier. cubic(int size, Ray3d start, Ray3d end, double shape)Approximate a cubic Bézier curve from start to end with two generated control points at half the distance between start and end.static PolyLine3dBezier. cubic(int size, Ray3d start, Ray3d end, double shape, boolean weighted)Approximate a cubic Bézier curve from start to end with two generated control points at half the distance between start and end.static PolyLine2dBezier. cubic(int size, Point2d start, Point2d control1, Point2d control2, Point2d end)Approximate a cubic Bézier curve from start to end with two control points.static PolyLine3dBezier. cubic(int size, Point3d start, Point3d control1, Point3d control2, Point3d end)Approximate a cubic Bézier curve from start to end with two control points.static PolyLine2dBezier. cubic(Ray2d start, Ray2d end)Approximate a cubic Bézier curve from start to end with two generated control points at half the distance between start and end.static PolyLine3dBezier. cubic(Ray3d start, Ray3d end)Construct a cubic Bézier curve from start to end with two generated control points at half the distance between start and end.LPolyLine. extract(double start, double end)Create a new PolyLine that covers a sub-section of this PolyLine.PolyLine2dPolyLine2d. extract(double start, double end)Create a new PolyLine that covers a sub-section of this PolyLine.PolyLine3dPolyLine3d. extract(double start, double end)Create a new PolyLine that covers a sub-section of this PolyLine.default LPolyLine. extractFractional(double start, double end)Construct a new PolyLine covering the indicated fraction of this PolyLine.default intPolyLine. find(double pos)Binary search for a point index on this PolyLine that is at, or the the nearest one before a given position.default RLineSegment. getLocation(double position)Create a Ray on a specified point on this LineSegment.RPolyLine. getLocation(double position)Get the location at a position on the line, with its direction.Ray2dPolyLine2d. getLocation(double position)Get the location at a position on the line, with its direction.Ray3dPolyLine3d. getLocation(double position)Get the location at a position on the line, with its direction.default RRay. getLocation(double position)Get the location at a position on the line, with its direction.RLineSegment. getLocationExtended(double position)Create a Ray on a specified point on this LineSegment.Ray2dLineSegment2d. getLocationExtended(double position)Create a Ray on a specified point on this LineSegment.Ray3dLineSegment3d. getLocationExtended(double position)Create a Ray on a specified point on this LineSegment.RRay. getLocationExtended(double position)Get the location at a position on the line, with its direction.Ray2dRay2d. getLocationExtended(double position)Get the location at a position on the line, with its direction.Ray3dRay3d. getLocationExtended(double position)Get the location at a position on the line, with its direction.default RPolyLine. getLocationFraction(double fraction)Get the location at a fraction of the line, with its direction.default RPolyLine. getLocationFraction(double fraction, double tolerance)Get the location at a fraction of the line, with its direction.LPolyLine. instantiate(List<P> pointList)Constructor that can be accessed as a method (used to implement default methods in this interface).PolyLine2dPolyLine2d. instantiate(List<Point2d> pointList)Constructor that can be accessed as a method (used to implement default methods in this interface).PolyLine3dPolyLine3d. instantiate(List<Point3d> pointList)Constructor that can be accessed as a method (used to implement default methods in this interface).default LPolyLine. offsetLine(double offset)Construct an offset PolyLine.default LPolyLine. offsetLine(double offsetAtStart, double offsetAtEnd)Construct an offset line.LPolyLine. offsetLine(double offset, double circlePrecision, double offsetMinimumFilterValue, double offsetMaximumFilterValue, double offsetFilterRatio, double minimumOffset)Construct an offset line.LPolyLine. offsetLine(double offsetAtStart, double offsetAtEnd, double circlePrecision, double offsetMinimumFilterValue, double offsetMaximumFilterValue, double offsetFilterRatio, double minimumOffset)Construct an offset line.PolyLine2dPolyLine2d. offsetLine(double offsetAtStart, double offsetAtEnd, double circlePrecision, double offsetMinimumFilterValue, double offsetMaximumFilterValue, double offsetFilterRatio, double minimumOffset)Construct an offset line.LineSegment2dLineSegment3d. project()Project the object onto the z=0 plane.Polygon2dPolygon3d. project()Project the object onto the z=0 plane.PolyLine2dPolyLine3d. project()Project the object onto the z=0 plane.LPolyLine. transitionLine(L endLine, PolyLine.TransitionFunction transition)Make a transition line from this PolyLine to another PolyLine using a user specified function.PolyLine2dPolyLine2d. transitionLine(PolyLine2d endLine, PolyLine.TransitionFunction transition)Make a transition line from this PolyLine to another PolyLine using a user specified function.PolyLine3dPolyLine3d. transitionLine(PolyLine3d endLine, PolyLine.TransitionFunction transition)Make a transition line from this PolyLine to another PolyLine using a user specified function.LPolyLine. truncate(double position)Truncate this PolyLine at the given length (less than the length of the line, and larger than zero) and return a new line.PolyLine2dPolyLine2d. truncate(double position)Truncate this PolyLine at the given length (less than the length of the line, and larger than zero) and return a new line.PolyLine3dPolyLine3d. truncate(double position)Truncate this PolyLine at the given length (less than the length of the line, and larger than zero) and return a new line.Constructors in org.djutils.draw.line that throw DrawRuntimeException Constructor Description LineSegment2d(double startX, double startY, double endX, double endY)Construct a new LineSegment2d start four coordinates.LineSegment2d(double startX, double startY, Point2d end)Construct a new LineSegment2d start two coordinates and a Point2d.LineSegment2d(Point2d start, double endX, double endY)Construct a new LineSegment2d start a Point2d and two coordinates.LineSegment2d(Point2d start, Point2d end)Construct a new LineSegment2d start two Point2d objects.LineSegment3d(double startX, double startY, double startZ, double endX, double endY, double endZ)Construct a new LineSegment3d start six coordinates.LineSegment3d(double startX, double startY, double startZ, Point3d end)Construct a new LineSegment3d start three coordinates and a Point3d.LineSegment3d(Point3d start, double endX, double endY, double endZ)Construct a new LineSegment3d start a Point3d and three coordinates.LineSegment3d(Point3d start, Point3d end)Construct a new LineSegment3d start two Point3d objects.Polygon2d(boolean filterDuplicates, List<Point2d> pointList)Create a new Polygon2d, optionally filtering out repeating successive points.Polygon2d(boolean filterDuplicates, Point2d... points)Create a new Polygon2d, optionally filtering out repeating successive points.Polygon2d(double[] x, double[] y)Construct a new Polygon2d.Polygon2d(List<Point2d> points)Construct a new Polygon2d from a list of Point2d objects.Polygon2d(Point2d[] points)Construct a new Polygon2d.Polygon2d(Point2d point1, Point2d point2, Point2d... otherPoints)Construct a new Polygon2d.Polygon3d(boolean filterDuplicates, List<Point3d> pointList)Create a new Polygon3d, optionally filtering out repeating successive points.Polygon3d(boolean filterDuplicates, Point3d... points)Create a new Polygon3d, optionally filtering out repeating successive points.Polygon3d(double[] x, double[] y, double[] z)Construct a new Polygon3d.Polygon3d(List<Point3d> points)Construct a new Polygon3d from a list of Point3d objects.Polygon3d(Point3d[] points)Construct a new Polygon3d.Polygon3d(Point3d point1, Point3d point2, Point3d... otherPoints)Construct a new Polygon3d.PolyLine2d(boolean copyNeeded, double[] x, double[] y)Construct a new PolyLine2d from an array of double x values and an array of double y values.PolyLine2d(boolean filterDuplicates, List<Point2d> pointList)Create a new PolyLine2d, optionally filtering out repeating successive points.PolyLine2d(boolean filterDuplicates, Point2d... points)Create a new PolyLine2d, optionally filtering out repeating successive points.PolyLine2d(double[] x, double[] y)Construct a new PolyLine2d from an array of Point2d.PolyLine2d(double x, double y, double heading)Construct a degenerate PolyLine2d (consisting of only one point).PolyLine2d(Path2D path)Construct a new PolyLine2d from a Path2D.PolyLine2d(Iterator<Point2d> iterator)Construct a new PolyLine2d from an iterator that yields Point2d objects.PolyLine2d(List<Point2d> pointList)Construct a new PolyLine2d from a List<Point2d>.PolyLine2d(Ray2d r)Construct a degenerate PolyLine2d (consisting of only one point).PolyLine2d(Point2d[] points)Construct a new PolyLine2d from an array of Point2d.PolyLine2d(Point2d p, double heading)Construct a degenerate PolyLine2d (consisting of only one point).PolyLine2d(Point2d point1, Point2d point2, Point2d... otherPoints)Construct a new PolyLine2d from an array of Point2d.PolyLine3d(boolean filterDuplicates, List<Point3d> pointList)Create a new PolyLine3d, optionally filtering out repeating successive points.PolyLine3d(boolean filterDuplicates, Point3d... points)Create a new PolyLine3d, optionally filtering out repeating successive points.PolyLine3d(double[] x, double[] y, double[] z)Construct a new PolyLine3d from an array of Point2d.PolyLine3d(double x, double y, double z, double phi, double theta)Construct a degenerate PolyLine3d (consisting of only one point).PolyLine3d(Iterator<Point3d> iterator)Construct a new PolyLine3d from an iterator that yields Point3d objects.PolyLine3d(List<Point3d> pointList)Construct a new PolyLine3d from a List<Point3d>.PolyLine3d(Ray3d r)Construct a degenerate PolyLine3d (consisting of only one point).PolyLine3d(Point3d[] points)Construct a new PolyLine3d from an array of Point3d.PolyLine3d(Point3d p, double phi, double theta)Construct a degenerate PolyLine3d (consisting of only one point).PolyLine3d(Point3d point1, Point3d point2, Point3d... otherPoints)Construct a new PolyLine3d from an array of Point3d.Ray2d(double x, double y, double phi)Construct a new Ray2d.Ray2d(double x, double y, double throughX, double throughY)Construct a new Ray2d.Ray2d(double x, double y, Point2d throughPoint)Construct a new Ray2d.Ray2d(Point2d point, double phi)Construct a new Ray2d.Ray2d(Point2d point, double throughX, double throughY)Construct a new Ray2d.Ray2d(Point2d point, Point2d throughPoint)Construct a new Ray2d.Ray3d(double x, double y, double z, double phi, double theta)Construct a new Ray3d.Ray3d(double x, double y, double z, double throughX, double throughY, double throughZ)Construct a new Ray3d.Ray3d(double x, double y, double z, Point3d throughPoint)Construct a new Ray3d.Ray3d(Point3d point, double phi, double theta)Construct a new Ray3d.Ray3d(Point3d point, double throughX, double throughY, double throughZ)Construct a new Ray3d.Ray3d(Point3d point, Point3d throughPoint)Construct a new Ray3d. -
Uses of DrawRuntimeException in org.djutils.draw.point
Methods in org.djutils.draw.point that throw DrawRuntimeException Modifier and Type Method Description static List<Point2d>Point2d. circleIntersections(Point2d center1, double radius1, Point2d center2, double radius2)Return the zero, one or two intersections between two circles.PPoint. closestPointOnLine(P linePoint1, P linePoint2)Project a point on a line.Point2dPoint2d. closestPointOnLine(double p1X, double p1Y, double p2X, double p2Y)Project a point on a line.Point2dPoint2d. closestPointOnLine(double p1X, double p1Y, double p2X, double p2Y, Boolean lowLimitHandling, Boolean highLimitHandling)Compute the closest point on a line with optional limiting of the result on either end.Point2dPoint2d. closestPointOnLine(Point2d linePoint1, Point2d linePoint2)Project a point on a line.Point3dPoint3d. closestPointOnLine(double p1X, double p1Y, double p1Z, double p2X, double p2Y, double p2Z)Project a point on a line.Point3dPoint3d. closestPointOnLine(double p1X, double p1Y, double p1Z, double p2X, double p2Y, double p2Z, Boolean lowLimitHandling, Boolean highLimitHandling)Compute the closest point on a line with optional limiting of the result on either end.Point3dPoint3d. closestPointOnLine(Point3d linePoint1, Point3d linePoint2)Project a point on a line.Point3dPoint3d. closestPointOnSegment(double p1X, double p1Y, double p1Z, double p2X, double p2Y, double p2Z)Project a point on a line segment.doublePoint2d. fractionalPositionOnLine(double p1X, double p1Y, double p2X, double p2Y, Boolean lowLimitHandling, Boolean highLimitHandling)Compute the fractional position of the closest point on a line with optional limiting of the result on either end.doublePoint3d. fractionalPositionOnLine(double p1X, double p1Y, double p1Z, double p2X, double p2Y, double p2Z, Boolean lowLimitHandling, Boolean highLimitHandling)Compute the fractional position of the closest point on a line with optional limiting of the result on either end.static Point2dPoint2d. intersectionOfLines(double line1P1X, double line1P1Y, double line1P2X, double line1P2Y, boolean lowLimitLine1, boolean highLimitLine1, double line2P1X, double line2P1Y, double line2P2X, double line2P2Y, boolean lowLimitLine2, boolean highLimitLine2)Compute the 2D intersection of two lines.static Point2dPoint2d. intersectionOfLines(double l1P1X, double l1P1Y, double l1P2X, double l1P2Y, double l2P1X, double l2P1Y, double l2P2X, double l2P2Y)Compute the 2D intersection of two lines.static Point2dPoint2d. intersectionOfLineSegments(double line1P1X, double line1P1Y, double line1P2X, double line1P2Y, double line2P1X, double line2P1Y, double line2P2X, double line2P2Y)Compute the 2D intersection of two line segments.static Point2dPoint2d. intersectionOfLineSegments(Point2d line1P1, Point2d line1P2, Point2d line2P1, Point2d line2P2)Compute the 2D intersection of two line segments.OrientedPoint3dOrientedPoint3d. normalize()Return a new Point with a distance of 1 to the origin.PPoint. normalize()Return a new Point with a distance of 1 to the origin.Point2dPoint2d. normalize()Return a new Point with a distance of 1 to the origin.Point3dPoint3d. normalize()Return a new Point with a distance of 1 to the origin.Point2dPoint3d. project()Project the object onto the z=0 plane. -
Uses of DrawRuntimeException in org.djutils.draw.surface
Methods in org.djutils.draw.surface that throw DrawRuntimeException Modifier and Type Method Description Drawable2dSurface3d. project()Project the object onto the z=0 plane.Constructors in org.djutils.draw.surface that throw DrawRuntimeException Constructor Description Surface3d(Point3d[][] points)Construct a new Surface3d.
-