Uses of Class
org.evoludo.geom.Point2D
Packages that use Point2D
Package
Description
-
Uses of Point2D in org.evoludo.geom
Subclasses of Point2D in org.evoludo.geomModifier and TypeClassDescriptionclass
Class representing a (network) node in 2D space with position and radius.class
Utility class for 2D vector manipulations.Fields in org.evoludo.geom declared as Point2DModifier and TypeFieldDescriptionprotected Point2D
Rectangle2D.origin
The origin of the rectangle (lower left corner).Segment2D.p1
The first point of the line segment.Segment2D.p2
The 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 byptSrc
and stores the result inptDst
.final Point2D
Path2D.getCurrentPoint()
Returns the coordinates most recently added to the end of the path as aPoint2D
object.(package private) Point2D
Path2D.getPoint
(int coordindex) Return the point in thePath2D
with the specified index.Line2D.intersection
(Line2D l) Return the intersection of two lines orDouble.NaN
if no intersection.Line2D.intersection
(Segment2D s) Return the intersection of the line and the segments
orDouble.NaN
if there is no intersection.AffineTransform.inverseTransform
(Point2D ptSrc, Point2D ptDst) Inverse transforms the specifiedptSrc
and stores the result inptDst
.Point2D.scale
(double s) Scale the coordinates of this 2D point by a factors
to(s*x,s*y)
.Point2D.scale
(double sx, double sy) Scale the coordinates of this 2D point by scalar factorssx
andsy
, 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
, anddy
in thex
-,y
-coordinates, respectively, to(x+dx,y+dy)
.Shift the 2D point byp.x
, andp.y
in thex
-,y
-coordinates, respectively, to(x+p.x,y+p.y)
.Transforms the specifiedptSrc
and stores the result inptDst
.Methods in org.evoludo.geom with parameters of type Point2DModifier and TypeMethodDescriptionboolean
Check if pointp
lies above or below the line.Add the 2D vectorsa
andb
and store the result in this vector.boolean
Check if the rectangle contains the pointp
.private static boolean
For the three collinear pointsp,q,x
, check if the pointx
lies on the line segmentp-q
.AffineTransform.deltaTransform
(Point2D ptSrc, Point2D ptDst) Transforms the relative distance vector specified byptSrc
and stores the result inptDst
.double
Calculate the distance between pointp
and the line.double
Calculate the distance between the two 2D pointsp
andq
: \(\sqrt{(p.x-q.x)^2+(p.y-q.y)^2}\).double
static double
Calculate the squared distance between pointp
and the linel
.double
Calculate the squared distance between pointp
and the line.double
Calculate the distance squared between the two 2D pointsp
andq
: \((p.x-q.x)^2+(p.y-q.y)^2\).double
static double
Find the square distance of the pointp
from the segment, specified by the two pointss1
ands2
.static double
Find the square distance of the pointp
from the segments
.AffineTransform.inverseTransform
(Point2D ptSrc, Point2D ptDst) Inverse transforms the specifiedptSrc
and stores the result inptDst
.static int
Segment2D.orientation
(Point2D p, Point2D q, Point2D r) Find the orientation of the ordered triplet(p, q, r)
.Set the line to pass through pointsp1
andp2
.Set the line to pass through pointp
in the direction of vectorv
.Setx
- andy
-coordinates of the point to those of the 2D pointp
.Set the line segment from pointp1
to pointp2
.Set the 2D vector to pointing fromfrom
toto
.void
Set the line to pass through the pointsp1
andp2
.void
Point2D.setLocation
(Point2D p) Compatibility method to coverPoint2D.setLocation(java.awt.geom.Point2D)
.Shift the 2D point byp.x
, andp.y
in thex
-,y
-coordinates, respectively, to(x+p.x,y+p.y)
.void
Transforms an array of point objects by this transform.Transforms the specifiedptSrc
and stores the result inptDst
.Constructors in org.evoludo.geom with parameters of type Point2DModifierConstructorDescriptionCreate a new 2D line through pointsp1
andp2
.Create a new 2D line withorigin
anddirection
.Create a copy of the 2D pointp
.Create a new 2D line from pointp1
to 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) Point2D
S3Graph.e0
The lower left corner of the simplex.(package private) Point2D
S3Graph.e1
The lower right corner of the simplex.(package private) Point2D
S3Graph.e2
The upper corner of the simplex.(package private) Point2D
LineGraph.pinch
The center of the pinch gesture.protected Point2D
AbstractGraph.viewCorner
The 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
.boolean
ParaGraph.TraitMap.data2Phase
(double[] data, Point2D point) boolean
ParaGraph.TraitMap.phase2Data
(Point2D point, double[] data) -
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 TypeMethodDescriptionboolean
ATBT.ATBTMap.data2Phase
(double[] data, Point2D point) boolean
EcoPGG.EcoPGGMap.data2Phase
(double[] data, Point2D point) boolean
ATBT.ATBTMap.phase2Data
(Point2D point, double[] data) boolean
EcoPGG.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 TypeMethodDescriptionboolean
HasPhase2D.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.boolean
HasPhase2D.Data2Phase.phase2Data
(Point2D point, double[] data) Convert point on phase plane to data array.