Uses of Class
org.evoludo.geom.Point2D
Packages that use Point2D
Package
Description
The geometric utilities for working with shapes and spatial relationships.
The GWT graphics for rendering and visualizing evolutionary models.
The modules to implement various evolutionary models.
The views to visualize results and interact with evolutionary models.
-
Uses of Point2D in org.evoludo.geom
Subclasses of Point2D in org.evoludo.geomModifier and TypeClassDescriptionclassClass representing a (network) node in 2D space with position and radius.classUtility class for 2D vector manipulations.Fields in org.evoludo.geom declared as Point2DModifier and TypeFieldDescriptionprotected Point2DRectangle2D.originThe origin of the rectangle (lower left corner).(package private) Point2DSegment2D.p1The first point of the line segment.(package private) Point2DSegment2D.p2The second point of the line segment.Methods in org.evoludo.geom that return Point2DModifier and TypeMethodDescriptionAffineTransform.deltaTransform(Point2D ptSrc, Point2D ptDst) Transforms the relative distance vector specified byptSrcand stores the result inptDst.final Point2DPath2D.getCurrentPoint()Returns the coordinates most recently added to the end of the path as aPoint2Dobject.(package private) Point2DPath2D.getPoint(int coordindex) Return the point in thePath2Dwith the specified index.Line2D.intersection(Line2D l) Return the intersection of two lines orDouble.NaNif no intersection.Line2D.intersection(Segment2D s) Return the intersection of the line and the segmentsorDouble.NaNif there is no intersection.AffineTransform.inverseTransform(Point2D ptSrc, Point2D ptDst) Inverse transforms the specifiedptSrcand stores the result inptDst.Point2D.scale(double s) Scale the coordinates of this 2D point by a factorsto(s*x,s*y).Point2D.scale(double sx, double sy) Scale the coordinates of this 2D point by scalar factorssxandsy, respectively, to(sx*x, sy*y).Point2D.set(double x, double y) Setx- andy-coordinates of the point.Setx- andy-coordinates of the point to those of the 2D pointp.Point2D.setX(double x) Set thex-coordinate of this 2D point.Point2D.setY(double y) Set they-coordinate of this 2D point.Point2D.shake(double quake) Point2D.shift(double dx, double dy) Shift the 2D point bydx, anddyin thex-,y-coordinates, respectively, to(x+dx,y+dy).Shift the 2D point byp.x, andp.yin thex-,y-coordinates, respectively, to(x+p.x,y+p.y).Transforms the specifiedptSrcand stores the result inptDst.Methods in org.evoludo.geom with parameters of type Point2DModifier and TypeMethodDescriptionbooleanCheck if pointplies above or below the line.Add the 2D vectorsaandband store the result in this vector.booleanCheck if the rectangle contains the pointp.private static booleanFor the three collinear pointsp,q,x, check if the pointxlies on the line segmentp-q.AffineTransform.deltaTransform(Point2D ptSrc, Point2D ptDst) Transforms the relative distance vector specified byptSrcand stores the result inptDst.doubleCalculate the distance between pointpand the line.doubleCalculate the distance between the two 2D pointspandq: \(\sqrt{(p.x-q.x)^2+(p.y-q.y)^2}\).doublestatic doubleCalculate the squared distance between pointpand the linel.doubleCalculate the squared distance between pointpand the line.doubleCalculate the distance squared between the two 2D pointspandq: \((p.x-q.x)^2+(p.y-q.y)^2\).doublestatic doubleFind the square distance of the pointpfrom the segment, specified by the two pointss1ands2.static doubleFind the square distance of the pointpfrom the segments.static doubleCalculate the slope of a line running through pointsp1andp2.static doubleLine2D.getYIntercept(Point2D p1, Point2D p2) Calculate the slope of a line running through pointsp1andp2.AffineTransform.inverseTransform(Point2D ptSrc, Point2D ptDst) Inverse transforms the specifiedptSrcand stores the result inptDst.booleanCheck it pointhitlies inside of node.final voidAdds pointptto the path by drawing a stright line to the specified location.final voidAdds pointptto the path by moving to the specified location.static intSegment2D.orientation(Point2D p, Point2D q, Point2D r) Find the orientation of the ordered triplet(p, q, r).voidSet the line to pass through pointsp1andp2.voidSet the line to pass through pointpin the direction of vectorv.Setx- andy-coordinates of the point to those of the 2D pointp.voidSet the line segment from pointp1to pointp2.Set the 2D vector to pointing fromfromtoto.voidSet the line to pass through the pointsp1andp2.voidPoint2D.setLocation(Point2D p) Compatibility method to coverPoint2D.setLocation(java.awt.geom.Point2D).Shift the 2D point byp.x, andp.yin thex-,y-coordinates, respectively, to(x+p.x,y+p.y).voidTransforms an array of point objects by this transform.Transforms the specifiedptSrcand stores the result inptDst.Constructors in org.evoludo.geom with parameters of type Point2DModifierConstructorDescriptionCreate a new 2D line through pointsp1andp2.Create a copy of the 2D pointp.Create a new 2D line from pointp1to pointp2.Create a new 2D vector from point/vectorp. -
Uses of Point2D in org.evoludo.graphics
Fields in org.evoludo.graphics declared as Point2DModifier and TypeFieldDescription(package private) Point2DS3Graph.e0The lower left corner of the simplex.(package private) Point2DS3Graph.e1The lower right corner of the simplex.(package private) Point2DS3Graph.e2The upper corner of the simplex.(package private) Point2DLineGraph.pinchThe center of the pinch gesture.protected Point2DAbstractGraph.viewCornerThe coordinates of the lower left corner visible on the canvas.Methods in org.evoludo.graphics that return Point2DModifier and TypeMethodDescriptionAbstractGraph.convertToScaledCoordinates(int x, int y) Convert the (browser) coordinates(x, y)to scaled coordinates in \([0,1]^2\).AbstractGraph.convertToScaledCoordinates(int x, int y, Point2D dest) Convert the (browser) coordinates(x, y)to scaled coordinates in \([0,1]^2\) and store indest.Methods in org.evoludo.graphics with parameters of type Point2DModifier and TypeMethodDescriptionAbstractGraph.convertToScaledCoordinates(int x, int y, Point2D dest) Convert the (browser) coordinates(x, y)to scaled coordinates in \([0,1]^2\) and store indest.booleanTraitMap.data2Phase(double[] data, Point2D point) private voidParaGraph.drawCustomMarkers(Point2D pt, double xScale, double yScale) Draw custom markers stored inAbstractGraph.markers.private voidParaGraph.drawStartEndMarkers(Point2D aPt, double xScale, double yScale) Draw start and end markers for the trajectory.private voidParaGraph.drawTrajectory(Point2D currPt, Point2D nextPt, double xScale, double yScale) Draw the trajectory stored in the buffer.protected voidAbstractGraph.fillCircle(Point2D point, double radius) Draw a filled circle atpointwithradius.booleanTraitMap.phase2Data(Point2D point, double[] data) protected voidAbstractGraph.strokeCircle(Point2D point, double radius) Draw the outline of a circle atpointwithradius.protected voidAbstractGraph.strokeLine(Point2D a, Point2D b) Draw a line from pointatob). -
Uses of Point2D in org.evoludo.simulator.modules
Methods in org.evoludo.simulator.modules that return Point2DMethods in org.evoludo.simulator.modules with parameters of type Point2DModifier and TypeMethodDescriptionbooleanATBT.ATBTMap.data2Phase(double[] data, Point2D point) booleanEcoPGG.EcoPGGMap.data2Phase(double[] data, Point2D point) booleanATBT.ATBTMap.phase2Data(Point2D point, double[] data) booleanEcoPGG.EcoPGGMap.phase2Data(Point2D point, double[] data) -
Uses of Point2D in org.evoludo.simulator.views
Methods in org.evoludo.simulator.views that return Point2DModifier and TypeMethodDescriptionConvert the data array to cartesian coordinates of point on simplex.Convert data triplet to cartesian coordinates of point on simplex.Methods in org.evoludo.simulator.views with parameters of type Point2DModifier and TypeMethodDescriptionbooleanHasPhase2D.Data2Phase.data2Phase(double[] data, Point2D point) Convert data array to point on phase plane.Convert the data array to cartesian coordinates of point on simplex.Convert data triplet to cartesian coordinates of point on simplex.booleanHasPhase2D.Data2Phase.phase2Data(Point2D point, double[] data) Convert point on phase plane to data array.