public class Translation2D
extends java.lang.Object
| Constructor | Description |
|---|---|
Translation2D(double srcX,
double srcY,
double destX,
double destY) |
Initialize the object using coordinates for the source and destination
|
Translation2D(javafx.geometry.Point2D source,
javafx.geometry.Point2D destination) |
Initialize the object using two 2D points.
|
| Modifier and Type | Method | Description |
|---|---|---|
javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Point2D> |
destinationProperty() |
Property containing the destination point.
|
javafx.geometry.Point2D |
getDestination() |
Get the destination point.
|
javafx.geometry.Point2D |
getSource() |
Get the source point.
|
javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Point2D> |
sourceProperty() |
Property containing the source point.
|
public Translation2D(javafx.geometry.Point2D source,
javafx.geometry.Point2D destination)
source - pointdestination - pointpublic Translation2D(double srcX,
double srcY,
double destX,
double destY)
srcX - X-coordinate of the source pointsrcY - Y-coordinate of the source pointdestX - X-coordinate of the destination pointdestY - Y-coordinate of the destination pointpublic javafx.geometry.Point2D getSource()
public javafx.geometry.Point2D getDestination()
public javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Point2D> sourceProperty()
public javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Point2D> destinationProperty()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.