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.org.djutils.draw.surface The d1 package provides an interface and different implementations for Areas. -
-
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 Bounds2d.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.Methods in org.djutils.draw.bounds with parameters of type Point2d Modifier and Type Method Description boolean
Bounds2d. contains(Point2d point)
Check if this Bounds2d contains a given point.boolean
Bounds2d. covers(Point2d point)
Check if this Bounds2d contains 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(Collection<Point2d> points)
Construct a Bounds2d from a collection of Point2d, finding the lowest and highest x and y coordinates.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
Ray2d. closestPointOnRay(Point2d point)
Project a Point on a Segment.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.Methods in org.djutils.draw.line that return types with arguments of type Point2d Modifier and Type Method Description 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.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
Ray2d. closestPointOnRay(Point2d point)
Project a Point on a Segment.Point2d
LineSegment2d. closestPointOnSegment(Point2d point)
Project a Point on this LineSegment.static PolyLine2d
PolyLine2d. createAndCleanPolyLine2d(Point2d... points)
Create a new Line2d, filtering out repeating successive points.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.double
PolyLine2d. projectOrthogonal(Point2d point)
Returns the fractional position along this line of the orthogonal projection of a point on this line.Method parameters in org.djutils.draw.line with type arguments of type Point2d Modifier and Type Method Description static PolyLine2d
PolyLine2d. createAndCleanPolyLine2d(List<Point2d> pointList)
Create an Line2d, while filtering out repeating successive points.PolyLine2d
PolyLine2d. instantiate(List<Point2d> pointList)
Constructor that can be accessed as a method (used to implement default methods in this interface).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.PolyLine2d(Point2d[] points)
Construct a new PolyLine2d from an array of Point2d.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 PolyLine2d(Iterator<Point2d> iterator)
Construct a new Line2d and initialize its length indexed line, bounds, centroid and length.PolyLine2d(List<Point2d> pointList)
Construct a new Line2d 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(Ray2d ray)
Closest point on a ray.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.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.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 immutable directed point with a direction from another Point, stored with double precision.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. -
Uses of Point2d in org.djutils.draw.surface
Methods in org.djutils.draw.surface with parameters of type Point2d Modifier and Type Method Description boolean
Polygon2d. contains(Point2d point)
Determine if a point is inside this Polygon.Constructors in org.djutils.draw.surface with parameters of type Point2d Constructor Description Polygon2d(Point2d point1, Point2d point2, Point2d[] otherPoints)
Construct a new Polygon2d.
-