Uses of Class
org.djutils.draw.point.Point2d
-
Packages that use Point2d Package Description org.djutils.draw The draw package contains the generic classes for device-independent drawing.org.djutils.draw.bounds Methods for Bounds of an object to quickly determine whether an object needs to be drawn or not.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. -
-
Uses of Point2d in org.djutils.draw
Methods in org.djutils.draw that return Point2d Modifier and Type Method Description Point2d
Transform2d. transform(Point2d point)
Apply the stored transform on the provided point and return a point with the transformed coordinate.Methods in org.djutils.draw that return types with arguments of type Point2d Modifier and Type Method Description Iterator<Point2d>
Transform2d. transform(Iterator<Point2d> pointIterator)
Apply the stored transform on the provided point and return a point with the transformed coordinate.Methods in org.djutils.draw with parameters of type Point2d Modifier and Type Method Description Point2d
Transform2d. transform(Point2d point)
Apply the stored transform on the provided point and return a point with the transformed coordinate.Transform2d
Transform2d. translate(Point2d point)
Translate coordinates by a the x and y values contained in a Point2d.Method parameters in org.djutils.draw with type arguments of type Point2d Modifier and Type Method Description Iterator<Point2d>
Transform2d. transform(Iterator<Point2d> pointIterator)
Apply the stored transform on the provided point and return a point with the transformed coordinate. -
Uses of Point2d in org.djutils.draw.bounds
Methods in org.djutils.draw.bounds that return Point2d Modifier and Type Method Description Point2d
Bounds2d. midPoint()
Return the mid point of this Bounds object.Methods in org.djutils.draw.bounds that return types with arguments of type Point2d Modifier and Type Method Description Iterator<Point2d>
Bounds2d. getPoints()
Retrieve, or generate all points that make up the object.static Iterator<Point2d>
Bounds2d. pointsOf(Collection<Drawable2d> drawableCollection)
Return an iterator that will return all points of one or more Drawable2d objects.static Iterator<Point2d>
Bounds2d. pointsOf(Drawable2d... drawable2d)
Return an iterator that will return all points of one or more Drawable objects.Methods in org.djutils.draw.bounds with parameters of type Point2d Modifier and Type Method Description boolean
Bounds2d. contains(Point2d point)
Check if a point is contained in this Bounds.boolean
Bounds2d. covers(Point2d point)
Check if this Bounds covers or touches a point.Constructors in org.djutils.draw.bounds with parameters of type Point2d Constructor Description Bounds2d(Point2d[] points)
Construct a Bounds2d from an array of Point2d, finding the lowest and highest x and y coordinates.Constructor parameters in org.djutils.draw.bounds with type arguments of type Point2d Constructor Description Bounds2d(Iterator<? extends Point2d> points)
Construct a Bounds2d from some collection of points, finding the lowest and highest x and y coordinates. -
Uses of Point2d in org.djutils.draw.line
Subclasses of Point2d in org.djutils.draw.line Modifier and Type Class Description class
Ray2d
Ray2d is a half-line; it has one end point with non-infinite coordinates; the other end point is infinitely far away.Methods in org.djutils.draw.line that return Point2d Modifier and Type Method Description Point2d
PolyLine2d. closestPointOnPolyLine(Point2d point)
Project a Point on this PolyLine.Point2d
Ray2d. closestPointOnRay(Point2d point)
Project a Point on a Ray.Point2d
LineSegment2d. closestPointOnSegment(Point2d point)
Project a Point on this LineSegment.Point2d
PolyLine2d. get(int i)
Return one of the points of this line.Point2d
LineSegment2d. getEndPoint()
Get the end point of this LineSegment.Point2d
Ray2d. getEndPoint()
Get the finite end point of this Ray.Point2d
LineSegment2d. getStartPoint()
Get the start point of this LineSegment.Point2d
LineSegment2d. projectOrthogonal(Point2d point)
Project a point onto this object.Point2d
PolyLine2d. projectOrthogonal(Point2d point)
Project a point onto this object.Point2d
Ray2d. projectOrthogonal(Point2d point)
Project a point onto this object.Point2d
LineSegment2d. projectOrthogonalExtended(Point2d point)
Project a point onto this object.Point2d
PolyLine2d. projectOrthogonalExtended(Point2d point)
Project a point onto this object.Point2d
Ray2d. projectOrthogonalExtended(Point2d point)
Project a point onto this object.Methods in org.djutils.draw.line that return types with arguments of type Point2d Modifier and Type Method Description (package private) static Iterator<Point2d>
PolyLine2d. cleanPoints(boolean filter, Iterator<Point2d> iterator)
Return an iterator that optionally skips identical successive points.Iterator<? extends Point2d>
LineSegment2d. getPoints()
Retrieve, or generate all points that make up the object.Iterator<Point2d>
PolyLine2d. getPoints()
Retrieve, or generate all points that make up the object.Iterator<Point2d>
Ray2d. getPoints()
Retrieve, or generate all points that make up the object.protected static List<Point2d>
PolyLine2d. iteratorToList(Iterator<Point2d> iterator)
Build a list from the Point2d objects that an iterator provides.Methods in org.djutils.draw.line with parameters of type Point2d Modifier and Type Method Description static PolyLine2d
Bezier. bezier(double epsilon, Point2d... points)
Approximate a Bézier curve of degree n with a specified precision.static PolyLine2d
Bezier. bezier(int size, Point2d... points)
Approximate a Bézier curve of degree n.static PolyLine2d
Bezier. bezier(Point2d... points)
Approximate a Bézier curve of degree n usingDEFAULT_BEZIER_SIZE
points.Point2d
PolyLine2d. closestPointOnPolyLine(Point2d point)
Project a Point on this PolyLine.Point2d
Ray2d. closestPointOnRay(Point2d point)
Project a Point on a Ray.Point2d
LineSegment2d. closestPointOnSegment(Point2d point)
Project a Point on this LineSegment.boolean
Polygon2d. contains(Point2d point)
Determine if a point is inside this Polygon.static PolyLine2d
Bezier. 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 PolyLine2d
Bezier. 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.protected static double[]
PolyLine2d. makeArray(Point2d[] points, Function<Point2d,Double> getter)
Make an array of double an fill it with the appropriate coordinate of points.Point2d
LineSegment2d. projectOrthogonal(Point2d point)
Project a point onto this object.Point2d
PolyLine2d. projectOrthogonal(Point2d point)
Project a point onto this object.Point2d
Ray2d. projectOrthogonal(Point2d point)
Project a point onto this object.Point2d
LineSegment2d. projectOrthogonalExtended(Point2d point)
Project a point onto this object.Point2d
PolyLine2d. projectOrthogonalExtended(Point2d point)
Project a point onto this object.Point2d
Ray2d. projectOrthogonalExtended(Point2d point)
Project a point onto this object.double
LineSegment2d. projectOrthogonalFractional(Point2d point)
Project a point onto this object.double
PolyLine2d. projectOrthogonalFractional(Point2d point)
Project a point onto this object.double
Ray2d. projectOrthogonalFractional(Point2d point)
Project a point onto this object.double
LineSegment2d. projectOrthogonalFractionalExtended(Point2d point)
Project a point onto this object.double
PolyLine2d. projectOrthogonalFractionalExtended(Point2d point)
Project a point onto this object.double
Ray2d. projectOrthogonalFractionalExtended(Point2d point)
Project a point onto this object.Method parameters in org.djutils.draw.line with type arguments of type Point2d Modifier and Type Method Description (package private) static Iterator<Point2d>
PolyLine2d. cleanPoints(boolean filter, Iterator<Point2d> iterator)
Return an iterator that optionally skips identical successive points.static Polygon2d
ConvexHull. convexHull(Iterator<Point2d> iterator)
Compute the convex hull of a collection of Point2d objects.static Polygon2d
ConvexHull. convexHull(List<Point2d> list)
Compute the convex hull of a list of Point2d objects.static Polygon2d
ConvexHull. 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 Polygon2d
ConvexHull. convexHullMonotone(List<Point2d> list)
Implementation of Andrew's Monotone Chain convex hull algorithm.PolyLine2d
PolyLine2d. instantiate(List<Point2d> pointList)
Constructor that can be accessed as a method (used to implement default methods in this interface).protected static List<Point2d>
PolyLine2d. iteratorToList(Iterator<Point2d> iterator)
Build a list from the Point2d objects that an iterator provides.protected static double[]
PolyLine2d. makeArray(Point2d[] points, Function<Point2d,Double> getter)
Make an array of double an fill it with the appropriate coordinate of points.Constructors in org.djutils.draw.line with parameters of type Point2d Constructor Description 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.Polygon2d(boolean filterDuplicates, Point2d... points)
Create a new Polygon2d, optionally filtering out repeating successive points.Polygon2d(Point2d[] points)
Construct a new Polygon2d.Polygon2d(Point2d point1, Point2d point2, Point2d... otherPoints)
Construct a new Polygon2d.PolyLine2d(boolean filterDuplicates, Point2d... points)
Create a new PolyLine2d, optionally filtering out repeating successive points.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.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.Constructor parameters in org.djutils.draw.line with type arguments of type Point2d Constructor Description Polygon2d(boolean filterDuplicates, List<Point2d> pointList)
Create a new Polygon2d, optionally filtering out repeating successive points.Polygon2d(Iterator<Point2d> iterator)
Construct a new Polygon2d from an iterator that yields Point2d.Polygon2d(List<Point2d> points)
Construct a new Polygon2d from a list of Point2d objects.PolyLine2d(boolean filterDuplicates, List<Point2d> pointList)
Create a new PolyLine2d, optionally filtering out repeating successive points.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>. -
Uses of Point2d in org.djutils.draw.point
Subclasses of Point2d in org.djutils.draw.point Modifier and Type Class Description class
OrientedPoint2d
The OrientedPoint2d is a point in a 2-dimensional space with an orientation vector, which is specified in terms of its counter-clockwise rotation around the point in radians.Methods in org.djutils.draw.point that return Point2d Modifier and Type Method Description Point2d
Point2d. abs()
Return a new Point with absolute coordinate values.Point2d
Point2d. closestPointOnLine(double p1X, double p1Y, double p2X, double p2Y)
Project a point on a line.Point2d
Point2d. 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.Point2d
Point2d. closestPointOnLine(Point2d linePoint1, Point2d linePoint2)
Project a point on a line.Point2d
Point2d. closestPointOnSegment(double p1X, double p1Y, double p2X, double p2Y)
Project a point on a line segment.Point2d
Point2d. closestPointOnSegment(Point2d segmentPoint1, Point2d segmentPoint2)
Project a point on a line segment.Point2d
Point2d. interpolate(Point2d point, double fraction)
Interpolate towards another Point with a fraction.static Point2d
Point2d. 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 Point2d
Point2d. 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 Point2d
Point2d. intersectionOfLines(Point2d line1P1, Point2d line1P2, Point2d line2P1, Point2d line2P2)
Compute the 2D intersection of two lines.static Point2d
Point2d. 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 Point2d
Point2d. intersectionOfLineSegments(LineSegment2d segment1, LineSegment2d segment2)
Compute the 2D intersection of two line segments.static Point2d
Point2d. intersectionOfLineSegments(Point2d line1P1, Point2d line1P2, Point2d line2P1, Point2d line2P2)
Compute the 2D intersection of two line segments.Point2d
Point2d. neg()
Return a new Point with negated coordinate values.Point2d
Point2d. normalize()
Return a new Point with a distance of 1 to the origin.Point2d
Point3d. project()
Project the object onto the z=0 plane.Point2d
Point2d. scale(double factor)
Return a new Point with the coordinates of this point scaled by the provided factor.Point2d
Point2d. translate(double dx, double dy)
Return a new Point with a translation by the provided dx and dy.Methods in org.djutils.draw.point that return types with arguments of type Point2d 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.Iterator<? extends Point2d>
Point2d. getPoints()
Retrieve, or generate all points that make up the object.Methods in org.djutils.draw.point with parameters of type Point2d 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.Point2d
Point2d. closestPointOnLine(Point2d linePoint1, Point2d linePoint2)
Project a point on a line.Point2d
Point2d. closestPointOnSegment(Point2d segmentPoint1, Point2d segmentPoint2)
Project a point on a line segment.double
Point2d. directionTo(Point2d otherPoint)
Return the direction to another Point2d.double
Point2d. distance(Point2d otherPoint)
Return the distance to another point.double
Point2d. distanceSquared(Point2d otherPoint)
Return the squared distance between this point and the provided point.boolean
Point2d. epsilonEquals(Point2d other, double epsilon)
A comparison with another point that returns true of each of the coordinates is less than epsilon apart.Point2d
Point2d. interpolate(Point2d point, double fraction)
Interpolate towards another Point with a fraction.static Point2d
Point2d. intersectionOfLines(Point2d line1P1, Point2d line1P2, Point2d line2P1, Point2d line2P2)
Compute the 2D intersection of two lines.static Point2d
Point2d. intersectionOfLineSegments(Point2d line1P1, Point2d line1P2, Point2d line2P1, Point2d line2P2)
Compute the 2D intersection of two line segments.Constructors in org.djutils.draw.point with parameters of type Point2d Constructor Description OrientedPoint2d(Point2d point, double dirZ)
Construct an oriented point from a Point2d and a direction.Point3d(Point2d point, double z)
Create an immutable point with just three values, x, y and z, stored with double precision from a Point2d and z.
-