Uses of Class javafx.geometry.Point2D (JavaFX 27)
Description: use: module: javafx.graphics, package: javafx.geometry, class: Point2D

# Uses of Class
javafx.geometry.Point2D

Packages that use Point2D
Package
Description
javafx.animation
Provides the set of classes for ease of use transition based animations.
javafx.geometry
Provides the set of 2D classes for defining and performing operations on objects related to two-dimensional geometry.
javafx.scene
Provides the core set of base classes for the JavaFX Scene Graph API.
javafx.scene.control.skin
The javafx.scene.control.skin package is where the skin classes, typically one for each UI control, are located
javafx.scene.input
Provides the set of classes for mouse and keyboard input event handling.
javafx.scene.robot
Provides API for simulating user interaction such as typing keys on the keyboard and using the mouse.
javafx.scene.text
Provides the set of classes for fonts and renderable Text Node.
javafx.scene.transform
Provides the set of convenient classes to perform rotating, scaling, shearing, and translation transformations for `Affine` objects.

- ## Uses of Point2D in javafx.animation

  Methods in javafx.animation with parameters of type Point2D
  Modifier and Type
  Method
  Description
  `static Interpolator`
  Interpolator.`ofLinear(Point2D... controlPoints)`
  Returns an interpolator that interpolates linearly between its specified control points.

- ## Uses of Point2D in javafx.geometry

  Classes in javafx.geometry that implement interfaces with type arguments of type Point2D
  Modifier and Type
  Class
  Description
  `class`
  `Point2D`
  A 2D geometric point that usually represents the x, y coordinates.
  Fields in javafx.geometry declared as Point2D
  Modifier and Type
  Field
  Description
  `static final Point2D`
  Point2D.`ZERO`
  Point or vector with both coordinates set to 0.
  Methods in javafx.geometry that return Point2D
  Modifier and Type
  Method
  Description
  `Point2D`
  Point2D.`add(double x, double y)`
  Returns a point with the specified coordinates added to the coordinates of this point.
  `Point2D`
  Point2D.`add(Point2D point)`
  Returns a point with the coordinates of the specified point added to the coordinates of this point.
  `Point2D`
  Point2D.`interpolate(Point2D endValue, double t)`
  Returns an intermediate value between the value of this `Interpolatable` and the specified `endValue` using the linear interpolation factor `t`.
  `Point2D`
  Point2D.`midpoint(double x, double y)`
  Returns a point which lies in the middle between this point and the specified coordinates.
  `Point2D`
  Point2D.`midpoint(Point2D point)`
  Returns a point which lies in the middle between this point and the specified point.
  `Point2D`
  Point2D.`multiply(double factor)`
  Returns a point with the coordinates of this point multiplied by the specified factor
  `Point2D`
  Point2D.`normalize()`
  Normalizes the relative magnitude vector represented by this instance.
  `Point2D`
  Point2D.`subtract(double x, double y)`
  Returns a point with the specified coordinates subtracted from the coordinates of this point.
  `Point2D`
  Point2D.`subtract(Point2D point)`
  Returns a point with the coordinates of the specified point subtracted from the coordinates of this point.
  Methods in javafx.geometry with parameters of type Point2D
  Modifier and Type
  Method
  Description
  `Point2D`
  Point2D.`add(Point2D point)`
  Returns a point with the coordinates of the specified point added to the coordinates of this point.
  `double`
  Point2D.`angle(Point2D point)`
  Computes the angle (in degrees) between the vector represented by this point and the vector represented by the specified point.
  `double`
  Point2D.`angle(Point2D p1, Point2D p2)`
  Computes the angle (in degrees) between the three points with this point as a vertex.
  `boolean`
  BoundingBox.`contains(Point2D p)`
  Tests if the specified point is inside the boundary of `Bounds`.
  `abstract boolean`
  Bounds.`contains(Point2D p)`
  Tests if the specified point is inside the boundary of `Bounds`.
  `boolean`
  Rectangle2D.`contains(Point2D p)`
  Tests if the specified point is inside the boundary of `Rectangle2D`.
  `Point3D`
  Point2D.`crossProduct(Point2D vector)`
  Computes cross product of the vector represented by this instance and the specified vector.
  `double`
  Point2D.`distance(Point2D point)`
  Computes the distance between this point and the specified `point`.
  `double`
  Point2D.`dotProduct(Point2D vector)`
  Computes dot (scalar) product of the vector represented by this instance and the specified vector.
  `Point2D`
  Point2D.`interpolate(Point2D endValue, double t)`
  Returns an intermediate value between the value of this `Interpolatable` and the specified `endValue` using the linear interpolation factor `t`.
  `Point2D`
  Point2D.`midpoint(Point2D point)`
  Returns a point which lies in the middle between this point and the specified point.
  `Point2D`
  Point2D.`subtract(Point2D point)`
  Returns a point with the coordinates of the specified point subtracted from the coordinates of this point.

- ## Uses of Point2D in javafx.scene

  Methods in javafx.scene that return Point2D
  Modifier and Type
  Method
  Description
  `Point2D`
  Node.`localToParent(double localX, double localY)`
  Transforms a point from the local coordinate space of this `Node` into the coordinate space of its parent.
  `Point2D`
  Node.`localToParent(Point2D localPoint)`
  Transforms a point from the local coordinate space of this `Node` into the coordinate space of its parent.
  `Point2D`
  Node.`localToScene(double localX, double localY)`
  Transforms a point from the local coordinate space of this `Node` into the coordinate space of its scene.
  `Point2D`
  Node.`localToScene(double x, double y, boolean rootScene)`
  Transforms a point from the local coordinate space of this `Node` into the coordinate space of its scene.
  `Point2D`
  Node.`localToScene(Point2D localPoint)`
  Transforms a point from the local coordinate space of this `Node` into the coordinate space of its scene.
  `Point2D`
  Node.`localToScene(Point2D localPoint, boolean rootScene)`
  Transforms a point from the local coordinate space of this `Node` into the coordinate space of its scene.
  `Point2D`
  Node.`localToScreen(double localX, double localY)`
  Transforms a point from the local coordinate space of this `Node` into the coordinate space of its `Screen`.
  `Point2D`
  Node.`localToScreen(double localX, double localY, double localZ)`
  Transforms a point from the local coordinate space of this `Node` into the coordinate space of its `Screen`.
  `Point2D`
  Node.`localToScreen(Point2D localPoint)`
  Transforms a point from the local coordinate space of this `Node` into the coordinate space of its `Screen`.
  `Point2D`
  Node.`localToScreen(Point3D localPoint)`
  Transforms a point from the local coordinate space of this `Node` into the coordinate space of its `Screen`.
  `Point2D`
  Node.`parentToLocal(double parentX, double parentY)`
  Transforms a point from the coordinate space of the parent into the local coordinate space of this `Node`.
  `Point2D`
  Node.`parentToLocal(Point2D parentPoint)`
  Transforms a point from the coordinate space of the parent into the local coordinate space of this `Node`.
  `Point2D`
  Node.`sceneToLocal(double sceneX, double sceneY)`
  Transforms a point from the coordinate space of the scene into the local coordinate space of this `Node`.
  `Point2D`
  Node.`sceneToLocal(double x, double y, boolean rootScene)`
  Transforms a point from the coordinate space of the scene into the local coordinate space of this `Node`.
  `Point2D`
  Node.`sceneToLocal(Point2D scenePoint)`
  Transforms a point from the coordinate space of the scene into the local coordinate space of this `Node`.
  `Point2D`
  Node.`sceneToLocal(Point2D point, boolean rootScene)`
  Transforms a point from the coordinate space of the scene into the local coordinate space of this `Node`.
  `Point2D`
  Node.`screenToLocal(double screenX, double screenY)`
  Transforms a point from the coordinate space of the `Screen` into the local coordinate space of this `Node`.
  `Point2D`
  Node.`screenToLocal(Point2D screenPoint)`
  Transforms a point from the coordinate space of the `Screen` into the local coordinate space of this `Node`.
  Methods in javafx.scene with parameters of type Point2D
  Modifier and Type
  Method
  Description
  `boolean`
  Node.`contains(Point2D localPoint)`
  Returns `true` if the given point (specified in the local coordinate space of this `Node`) is contained within the shape of this `Node`.
  `Point2D`
  Node.`localToParent(Point2D localPoint)`
  Transforms a point from the local coordinate space of this `Node` into the coordinate space of its parent.
  `Point2D`
  Node.`localToScene(Point2D localPoint)`
  Transforms a point from the local coordinate space of this `Node` into the coordinate space of its scene.
  `Point2D`
  Node.`localToScene(Point2D localPoint, boolean rootScene)`
  Transforms a point from the local coordinate space of this `Node` into the coordinate space of its scene.
  `Point2D`
  Node.`localToScreen(Point2D localPoint)`
  Transforms a point from the local coordinate space of this `Node` into the coordinate space of its `Screen`.
  `Point2D`
  Node.`parentToLocal(Point2D parentPoint)`
  Transforms a point from the coordinate space of the parent into the local coordinate space of this `Node`.
  `Point2D`
  Node.`sceneToLocal(Point2D scenePoint)`
  Transforms a point from the coordinate space of the scene into the local coordinate space of this `Node`.
  `Point2D`
  Node.`sceneToLocal(Point2D point, boolean rootScene)`
  Transforms a point from the coordinate space of the scene into the local coordinate space of this `Node`.
  `Point2D`
  Node.`screenToLocal(Point2D screenPoint)`
  Transforms a point from the coordinate space of the `Screen` into the local coordinate space of this `Node`.

- ## Uses of Point2D in javafx.scene.control.skin

  Methods in javafx.scene.control.skin that return Point2D
  Modifier and Type
  Method
  Description
  `Point2D`
  TextInputControlSkin.`getMenuPosition()`
  Returns the position to be used for a context menu, based on the location of the caret handle or selection handles.

- ## Uses of Point2D in javafx.scene.input

  Methods in javafx.scene.input that return Point2D
  Modifier and Type
  Method
  Description
  `final Point2D`
  PickResult.`getIntersectedTexCoord()`
  Return the intersected texture coordinates of the picked 3d shape.
  `Point2D`
  InputMethodRequests.`getTextLocation(int offset)`
  Gets the location of a specified offset in the current composed text, or of the selection in committed text.
  Constructors in javafx.scene.input with parameters of type Point2D
  Modifier
  Constructor
  Description
  ``
  `PickResult(Node node, Point3D point, double distance, int face, Point2D texCoord)`
  Creates a new instance of PickResult.
  ``
  `PickResult(Node node, Point3D point, double distance, int face, Point3D normal, Point2D texCoord)`
  Creates a new instance of PickResult.

- ## Uses of Point2D in javafx.scene.robot

  Methods in javafx.scene.robot that return Point2D
  Modifier and Type
  Method
  Description
  `Point2D`
  Robot.`getMousePosition()`
  Returns the current mouse (x,y) screen coordinates as a `Point2D`.
  Methods in javafx.scene.robot with parameters of type Point2D
  Modifier and Type
  Method
  Description
  `Color`
  Robot.`getPixelColor(Point2D location)`
  Returns the `Color` of the pixel at the screen coordinates relative to the primary screen specified by `location`.
  `final void`
  Robot.`mouseMove(Point2D location)`
  Moves the mouse to the (x,y) screen coordinates, relative to the primary screen, specified by the given `location`.

- ## Uses of Point2D in javafx.scene.text

  Methods in javafx.scene.text with parameters of type Point2D
  Modifier and Type
  Method
  Description
  `final HitInfo`
  TextFlow.`getHitInfo(Point2D point)`
  Maps local point to `HitInfo` in the content.
  `final HitInfo`
  Text.`hitTest(Point2D point)`
  Maps local point to `HitInfo` in the content.
  `final HitInfo`
  TextFlow.`hitTest(Point2D point)`
  Deprecated.
  replaced by `TextFlow.getHitInfo(javafx.geometry.Point2D)`

- ## Uses of Point2D in javafx.scene.transform

  Methods in javafx.scene.transform that return Point2D
  Modifier and Type
  Method
  Description
  `Point2D`
  Transform.`deltaTransform(double x, double y)`
  Transforms the relative magnitude vector by this transform.
  `Point2D`
  Transform.`deltaTransform(Point2D point)`
  Transforms the relative magnitude vector represented by the specified `Point2D` instance by this transform.
  `Point2D`
  Rotate.`inverseDeltaTransform(double x, double y)`
  `Point2D`
  Transform.`inverseDeltaTransform(double x, double y)`
  Transforms the relative magnitude vector by the inverse of this transform.
  `Point2D`
  Transform.`inverseDeltaTransform(Point2D point)`
  Transforms the relative magnitude vector represented by the specified `Point2D` instance by the inverse of this transform.
  `Point2D`
  Translate.`inverseDeltaTransform(double x, double y)`
  `Point2D`
  Translate.`inverseDeltaTransform(Point2D point)`
  `Point2D`
  Rotate.`inverseTransform(double x, double y)`
  `Point2D`
  Transform.`inverseTransform(double x, double y)`
  Transforms the specified point by the inverse of this transform.
  `Point2D`
  Transform.`inverseTransform(Point2D point)`
  Transforms the specified point by the inverse of this transform.
  `Point2D`
  Translate.`inverseTransform(double x, double y)`
  `Point2D`
  Transform.`transform(double x, double y)`
  Transforms the specified point by this transform.
  `Point2D`
  Transform.`transform(Point2D point)`
  Transforms the specified point by this transform.
  Methods in javafx.scene.transform with parameters of type Point2D
  Modifier and Type
  Method
  Description
  `void`
  Affine.`appendRotation(double angle, Point2D pivot)`
  Appends the 2D rotation with pivot to this instance.
  `void`
  Affine.`appendScale(double sx, double sy, Point2D pivot)`
  Appends the 2D scale with pivot to this instance.
  `void`
  Affine.`appendShear(double shx, double shy, Point2D pivot)`
  Appends the shear with pivot to this instance.
  `Point2D`
  Transform.`deltaTransform(Point2D point)`
  Transforms the relative magnitude vector represented by the specified `Point2D` instance by this transform.
  `Point2D`
  Transform.`inverseDeltaTransform(Point2D point)`
  Transforms the relative magnitude vector represented by the specified `Point2D` instance by the inverse of this transform.
  `Point2D`
  Translate.`inverseDeltaTransform(Point2D point)`
  `Point2D`
  Transform.`inverseTransform(Point2D point)`
  Transforms the specified point by the inverse of this transform.
  `void`
  Affine.`prependRotation(double angle, Point2D pivot)`
  Prepends the 2D rotation with pivot to this instance.
  `void`
  Affine.`prependScale(double sx, double sy, Point2D pivot)`
  Prepends the 2D scale with pivot to this instance.
  `void`
  Affine.`prependShear(double shx, double shy, Point2D pivot)`
  Prepends the shear with pivot to this instance.
  `Point2D`
  Transform.`transform(Point2D point)`
  Transforms the specified point by this transform.