Uses of Class
org.eclipse.gef.geometry.planar.Point
Package
Description
This package contains helper classes to transfer data from JavaFX/Geometry to
one another.
This package provides support for converting geometric objects to SWT and for
conversion between SWT and AWT.
This package provides core abstractions to support calculations within
2-dimensional Euclidean space.
This package provides utility classes being used internally for geometric
calculations.
This package provides support for geometric calculations based on shapes.
This package provides core abstractions to support calculations within
2-dimensional projective vector space.
-
Uses of Point in org.eclipse.gef.geometry.convert.fx
-
Uses of Point in org.eclipse.gef.geometry.convert.swt
Modifier and TypeMethodDescriptionstatic final Point
Geometry2SWT.toSWTPoint
(Point p) Creates a new SWTPoint
from this Point. -
Uses of Point in org.eclipse.gef.geometry.euclidean
Modifier and TypeMethodDescriptionstatic double
Straight.getSignedDistanceCCW
(Point p, Point q, Point r) ModifierConstructorDescription -
Uses of Point in org.eclipse.gef.geometry.internal.utils
Modifier and TypeMethodDescriptionstatic Point[]
PointListUtils.toPointsArray
(double[] coordinates) Converts a given array of x/y coordinate values into an array ofPoint
s.static Point[]
PointListUtils.toPointsArray
(Line[] segmentsArray, boolean open) Modifier and TypeMethodDescriptionstatic double[]
PointListUtils.toCoordinatesArray
(Point[] points) static Line[]
PointListUtils.toSegmentsArray
(Point[] points, boolean close) -
Uses of Point in org.eclipse.gef.geometry.planar
Modifier and TypeMethodDescriptionPoint.clone()
Overwritten with public visibility as proposed inCloneable
.AffineTransform.deltaTransform
(Point pt) Transforms the givenPoint
with thisAffineTransform
without applying the translation components of the transformation matrix of thisAffineTransform
.BezierCurve.get
(double t) Computes thePoint
on thisBezierCurve
at parameter value t, which is expected to lie in the parameterBezierCurve.Interval
[0;1]
.Line.get
(double t) Rectangle.getBottom()
Returns a new Point representing the middle point of the bottom side of this Rectangle.Rectangle.getBottomLeft()
Returns a new Point representing the bottom left point of this Rectangle.Rectangle.getBottomRight()
Returns a new Point representing the bottom right point of this Rectangle.CurvedPolygon.getCenter()
Returns an approximated centerPoint
of thisCurvedPolygon
.static Point
Point.getCentroid
(Point... points) Computes the centroid of the givenPoint
s.static Point[]
Point.getConvexHull
(Point... points) Computes the convex hull of the given set ofPoint
s using the Graham scan algorithm.Point.getCopy()
static final Point[]
Copies an array of points, by copying each point contained in the array.QuadraticCurve.getCtrl()
Get the control point.CubicCurve.getCtrl1()
Returns the first handlePoint
.CubicCurve.getCtrl2()
Returns the second handlePoint
.Point.getDifference
(Point other) Line.getIntersection
(Line l) Returns the single intersection point between thisLine
and the given one, in case it exists.Point[]
Arc.getIntersections
(ICurve c) Point[]
BezierCurve.getIntersections
(BezierCurve other) Returns thePoint
s of intersection of this and the given otherBezierCurve
.final Point[]
BezierCurve.getIntersections
(ICurve curve) Point[]
Ellipse.getIntersections
(Ellipse e2) Point[]
Ellipse.getIntersections
(ICurve c) Point[]
Ellipse.getIntersections
(Line line) Point[]
ICurve.getIntersections
(ICurve c) Point[]
Line.getIntersections
(BezierCurve curve) Point[]
PolyBezier.getIntersections
(ICurve c) Point[]
Polyline.getIntersections
(ICurve c) Rectangle.getLeft()
Returns a new Point representing the middle point of the left hand side of this Rectangle.Point.getNegated()
Creates a Point with negated x and y values.Point[]
Region.getOutlineIntersections
(ICurve c) BezierCurve.getP1()
ICurve.getP1()
PolyBezier.getP1()
Polyline.getP1()
BezierCurve.getP2()
ICurve.getP2()
PolyBezier.getP2()
Polyline.getP2()
BezierCurve.getPoint
(int i) Returns the ith controlPoint
of thisBezierCurve
.Point[]
BezierCurve.getPoints()
Returns the controlPoint
s of thisBezierCurve
.Point[]
Line.getPoints()
Point[]
Path.Segment.getPoints()
Returns a copy of thePoint
s associated with thisPath.Segment
.Point[]
Rectangle.getPoints()
Arc.getProjection
(Point reference) BezierCurve.getProjection
(Point reference) ICurve.getProjection
(Point reference) Line.getProjection
(Point p) PolyBezier.getProjection
(Point reference) Polyline.getProjection
(Point reference) static final Point[]
Point.getReverseCopy
(Point... points) Returns a copy of the given array of points, where the points are placed in reversed order.Rectangle.getRight()
Returns a new Point which represents the middle point of the right hand side of this Rectangle.Point.getScaled
(double factor) Creates a new Point from this Point by scaling by the specified amount.Point.getScaled
(double xFactor, double yFactor) Creates a new Point from this Point by scaling by the specified values.Returns a newPoint
scaled by the given scale-factors.Rectangle.getTop()
Returns a new Point which represents the middle point of the top side of this Rectangle.Rectangle.getTopLeft()
Returns a new Point which represents the top left hand corner of this Rectangle.Rectangle.getTopRight()
Returns a new Point which represents the top right hand corner of this Rectangle.AffineTransform.getTransformed
(Point ptSrc) Transforms the givenPoint
with thisAffineTransform
by multiplying the transformation matrix of thisAffineTransform
with the givenPoint
.Point[]
AffineTransform.getTransformed
(Point[] points) Transforms the given array ofPoint
s with thisAffineTransform
by multiplying the transformation matrix of thisAffineTransform
individually with each of the givenPoint
s.Point.getTransformed
(AffineTransform transformation) Transforms a copy of thisPoint
using the givenAffineTransform
.Point.getTranslated
(double x, double y) Creates a new Point which is translated by the specified x and y valuesPoint.getTranslated
(Dimension d) Creates a new Point which is translated by the values of the input Dimension.Point.getTranslated
(Point p) Creates a new Point which is translated by the values of the provided Point.Point.getTransposed()
Creates a new Point with the transposed values of this Point.AffineTransform.inverseTransform
(Point pt) Inverse transforms the givenPoint
with thisAffineTransform
.static Point
Creates a new Point representing the MAX of two provided Points.static Point
Creates a new Point representing the MIN of two provided Points.static Point
Returns (one of) the candidate(s) with minimal distance to the given reference point.Point.negate()
Negates the x and y values of this Point.Point.scale
(double factor) Scales this Point by the specified amount.Point.scale
(double xFactor, double yFactor) Scales this Point by the specified values.Scales thisPoint
by the given scale-factors.Point.setLocation
(double x, double y) Sets the location of this Point to the provided x and y locations.Point.setLocation
(Point p) Sets the location of this Point to the specified Point.Point.setX
(double x) Sets the x value of this Point to the given value.Point.setY
(double y) Sets the y value of this Point to the given value;Point[]
BezierCurve.toPoints
(org.eclipse.gef.geometry.planar.BezierCurve.Interval startInterval) Point.transform
(AffineTransform transformation) Transforms thisPoint
in-place using the givenAffineTransform
.Point.translate
(double dx, double dy) Shifts this Point by the values supplied along each axes, and returns this for convenience.Shifts this Point by the values of the Dimension along each axis, and returns this for convenience.Shifts the location of this Point by the location of the input Point along each of the axes, and returns this for convenience.Point.transpose()
Transposes this object.Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Returns whether the given point is within the boundaries of this Rectangle.boolean
AffineTransform.deltaTransform
(Point pt) Transforms the givenPoint
with thisAffineTransform
without applying the translation components of the transformation matrix of thisAffineTransform
.boolean
Checks whether thisPolygon
and the one that is indirectly given via the given array of points are regarded to be equal.boolean
Checks whether thisPolyline
and the one that is indirectly given via the sequence of points are regarded to be equal.static Rectangle
static Point
Point.getCentroid
(Point... points) Computes the centroid of the givenPoint
s.static Point[]
Point.getConvexHull
(Point... points) Computes the convex hull of the given set ofPoint
s using the Graham scan algorithm.static final Point[]
Copies an array of points, by copying each point contained in the array.Point.getDifference
(Point other) double
Point.getDistance
(Point p) Calculates the distance from this Point to the one specified.double
BezierCurve.getParameterAt
(Point p) Returns the parameter value of thisBezierCurve
for the givenPoint
.Arc.getProjection
(Point reference) BezierCurve.getProjection
(Point reference) ICurve.getProjection
(Point reference) Line.getProjection
(Point p) PolyBezier.getProjection
(Point reference) Polyline.getProjection
(Point reference) static final Point[]
Point.getReverseCopy
(Point... points) Returns a copy of the given array of points, where the points are placed in reversed order.Arc.getRotatedCCW
(Angle angle, Point center) BezierCurve.getRotatedCCW
(Angle angle, Point center) CurvedPolygon.getRotatedCCW
(Angle angle, Point center) Ellipse.getRotatedCCW
(Angle angle, Point center) IRotatable.getRotatedCCW
(Angle angle, Point center) Pie.getRotatedCCW
(Angle angle, Point center) PolyBezier.getRotatedCCW
(Angle angle, Point center) Rectangle.getRotatedCCW
(Angle alpha, Point center) Region.getRotatedCCW
(Angle angle, Point center) Ring.getRotatedCCW
(Angle angle, Point center) RoundedRectangle.getRotatedCCW
(Angle angle, Point center) Arc.getRotatedCW
(Angle angle, Point center) BezierCurve.getRotatedCW
(Angle angle, Point center) CurvedPolygon.getRotatedCW
(Angle angle, Point center) Ellipse.getRotatedCW
(Angle angle, Point center) IRotatable.getRotatedCW
(Angle angle, Point center) Pie.getRotatedCW
(Angle angle, Point center) PolyBezier.getRotatedCW
(Angle angle, Point center) Rectangle.getRotatedCW
(Angle alpha, Point center) Region.getRotatedCW
(Angle angle, Point center) Ring.getRotatedCW
(Angle angle, Point center) RoundedRectangle.getRotatedCW
(Angle angle, Point center) Scales a copy of the calling object by the given factors relative to the given centerPoint
.Scales a copy of the calling object by the given factor relative to the given centerPoint
.Returns a newPoint
scaled by the given scale-factors.AffineTransform.getTransformed
(Point ptSrc) Transforms the givenPoint
with thisAffineTransform
by multiplying the transformation matrix of thisAffineTransform
with the givenPoint
.Point[]
AffineTransform.getTransformed
(Point[] points) Transforms the given array ofPoint
s with thisAffineTransform
by multiplying the transformation matrix of thisAffineTransform
individually with each of the givenPoint
s.BezierCurve.getTranslated
(Point d) CurvedPolygon.getTranslated
(Point d) ITranslatable.getTranslated
(Point d) Translates a copy of this object by the givenPoint
.Point.getTranslated
(Point p) Creates a new Point which is translated by the values of the provided Point.PolyBezier.getTranslated
(Point d) Region.getTranslated
(Point d) Ring.getTranslated
(Point d) Rectangle.getUnioned
(Point p) Returns a new Rectangle which contains both this Rectangle and the Point supplied as input.static PolyBezier
PolyBezier.interpolateCubic
(double curveWidthCoefficient, Point... points) static PolyBezier
PolyBezier.interpolateCubic
(Angle startAngle, double startLength, Angle endAngle, double endLength, double curveWidthCoefficient, Point... wayPoints) static PolyBezier
PolyBezier.interpolateCubic
(Point... points) AffineTransform.inverseTransform
(Point pt) Inverse transforms the givenPoint
with thisAffineTransform
.static Point
Creates a new Point representing the MAX of two provided Points.static Point
Creates a new Point representing the MIN of two provided Points.static Point
Returns (one of) the candidate(s) with minimal distance to the given reference point.Directly rotates thisBezierCurve
counter-clockwise (CCW) around the givenPoint
by the givenAngle
.static void
static void
Scales the calling object by the given factors relative to the given centerPoint
.Scales the calling object by the given factor relative to the given centerPoint
.Scales thisPoint
by the given scale-factors.static void
Sets the curve's control point.Initializes thisLine
with the start and end point coordinates provided by the given pointsPoint.setLocation
(Point p) Sets the location of this Point to the specified Point.Sets the ith controlPoint
of thisBezierCurve
.Translates the object by the givenPoint
.Shifts the location of this Point by the location of the input Point along each of the axes, and returns this for convenience.static void
Translates an array ofPoint
s by translating each individual point by a given x and y offset.ModifierConstructorDescriptionBezierCurve
(Point... controlPoints) Constructs a newBezierCurve
from the given controlPoint
s.CubicCurve
(Point... points) Constructs a newCubicCurve
from the given sequence ofPoint
s, which is expected to be in the order: startPoint
, first and second handlePoint
s, and endPoint
.CubicCurve
(Point start, Point ctrl1, Point ctrl2, Point end) Constructs a newCubicCurve
object from the given controlPoint
s.Constructs a Point at the same location as the given Point.QuadraticCurve
(Point... points) Constructs a newQuadraticCurve
from the given sequence ofPoint
s formed by start-, control-, and end-point.QuadraticCurve
(Point p1, Point pCtrl, Point p2) Constructs a new QuadraticCurve object from the given points.Constructs a newRectangle
with the given location and size.Constructs a newPath.Segment
of the given type. -
Uses of Point in org.eclipse.gef.geometry.projective