Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Rotate

[17:7] extends: Transform

Wraps JavaFX Rotate (javafx.scene.transform.Rotate), a Transform that rotates a node around a pivot point and an axis by a given angle in degrees. This is distinct from the RotateTransition wrapper, which is an animation that drives this kind of rotation over time. The axis is a Point3D. Standard axis values are exposed as xAxis, yAxis, and zAxis static helpers on Point3D.

Methods

  • Rotate (double Angle = 0.0, double PivotX = 0.0, double PivotY = 0.0, double PivotZ = 0.0)

    Creates a new Rotate with the given angle and optional pivot and axis.

    • @p Angle is a double with the rotation angle in degrees.
    • @p PivotX is an optional double with the pivot X coordinate.
    • @p PivotY is an optional double with the pivot Y coordinate.
    • @p PivotZ is an optional double with the pivot Z coordinate.
  • setAngle (double Angle)

    Sets the rotation angle in degrees.

    • @p Angle is a double with the angle.
    • @r this object
  • getAngle ()

    Returns the rotation angle in degrees.

    • @r A double with the angle.
  • setPivotX (double X)

    Sets the pivot X coordinate.

    • @p X is a double with the pivot X.
    • @r this object
  • setPivotY (double Y)

    Sets the pivot Y coordinate.

    • @p Y is a double with the pivot Y.
    • @r this object
  • setPivotZ (double Z)

    Sets the pivot Z coordinate.

    • @p Z is a double with the pivot Z.
    • @r this object
  • setAxis (object Axis)

    Sets the rotation axis from a Point3D wrapper.

    • @p Axis is a Point3D for the rotation axis.
    • @r this object
  • angleProperty ()

    Returns the DoubleProperty backing the rotation angle.

    • @r A DoubleProperty AJO.
  • getPivotX ()

    Returns the pivot X coordinate.

    • @r A double with the pivot X.
  • pivotXProperty ()

    Returns the DoubleProperty backing the pivot X coordinate.

    • @r A DoubleProperty AJO.
  • getPivotY ()

    Returns the pivot Y coordinate.

    • @r A double with the pivot Y.
  • pivotYProperty ()

    Returns the DoubleProperty backing the pivot Y coordinate.

    • @r A DoubleProperty AJO.
  • getPivotZ ()

    Returns the pivot Z coordinate.

    • @r A double with the pivot Z.
  • pivotZProperty ()

    Returns the DoubleProperty backing the pivot Z coordinate.

    • @r A DoubleProperty AJO.
  • getAxis ()

    Returns the rotation axis as a JavaFX Point3D.

    • @r An AJO wrapping javafx.geometry.Point3D.
  • axisProperty ()

    Returns the ObjectProperty backing the rotation axis.

    • @r An ObjectProperty AJO.
  • getMxx ()

    Returns matrix element [0, 0].

    • @r A double with the Mxx value.
  • getMxy ()

    Returns matrix element [0, 1].

    • @r A double with the Mxy value.
  • getMxz ()

    Returns matrix element [0, 2].

    • @r A double with the Mxz value.
  • getTx ()

    Returns the translation X component.

    • @r A double with the Tx value.
  • getMyx ()

    Returns matrix element [1, 0].

    • @r A double with the Myx value.
  • getMyy ()

    Returns matrix element [1, 1].

    • @r A double with the Myy value.
  • getMyz ()

    Returns matrix element [1, 2].

    • @r A double with the Myz value.
  • getTy ()

    Returns the translation Y component.

    • @r A double with the Ty value.
  • getMzx ()

    Returns matrix element [2, 0].

    • @r A double with the Mzx value.
  • getMzy ()

    Returns matrix element [2, 1].

    • @r A double with the Mzy value.
  • getMzz ()

    Returns matrix element [2, 2].

    • @r A double with the Mzz value.
  • getTz ()

    Returns the translation Z component.

    • @r A double with the Tz value.
  • createConcatenation (object Tx)

    Returns the concatenation of this transform with the supplied Transform.

    • @p Tx is a Transform wrapper to concatenate with.
    • @r An AJO holding the resulting javafx.scene.transform.Transform.
  • createInverse ()

    Returns the inverse of this transform. Throws NonInvertibleTransformException when the transform is not invertible.

    • @r An AJO holding the inverse javafx.scene.transform.Transform.
  • transform (double X, double Y)

    Transforms a 2D point through this rotation. Wraps the (double, double) overload that returns a Point2D.

    • @p X is a double with the input X coordinate.
    • @p Y is a double with the input Y coordinate.
    • @r An AJO holding the resulting javafx.geometry.Point2D.
  • transform3D (double X, double Y, double Z)

    Transforms a 3D point through this rotation. Wraps the (double, double, double) overload that returns a Point3D.

    • @p X is a double with the input X coordinate.
    • @p Y is a double with the input Y coordinate.
    • @p Z is a double with the input Z coordinate.
    • @r An AJO holding the resulting javafx.geometry.Point3D.
  • deltaTransform (double X, double Y)

    Transforms only the vector portion (no translation) of a 2D point.

    • @p X is a double with the input X coordinate.
    • @p Y is a double with the input Y coordinate.
    • @r An AJO holding the resulting javafx.geometry.Point2D.
  • deltaTransform3D (double X, double Y, double Z)

    Transforms only the vector portion (no translation) of a 3D point.

    • @p X is a double with the input X coordinate.
    • @p Y is a double with the input Y coordinate.
    • @p Z is a double with the input Z coordinate.
    • @r An AJO holding the resulting javafx.geometry.Point3D.
  • inverseTransform (double X, double Y)

    Inverse-transforms a 2D point through this rotation. Throws NonInvertibleTransformException if not invertible.

    • @p X is a double with the input X coordinate.
    • @p Y is a double with the input Y coordinate.
    • @r An AJO holding the resulting javafx.geometry.Point2D.
  • inverseTransform3D (double X, double Y, double Z)

    Inverse-transforms a 3D point through this rotation. Throws NonInvertibleTransformException if not invertible.

    • @p X is a double with the input X coordinate.
    • @p Y is a double with the input Y coordinate.
    • @p Z is a double with the input Z coordinate.
    • @r An AJO holding the resulting javafx.geometry.Point3D.
  • inverseDeltaTransform (double X, double Y)

    Inverse-transforms only the vector portion of a 2D point. Throws NonInvertibleTransformException if not invertible.

    • @p X is a double with the input X coordinate.
    • @p Y is a double with the input Y coordinate.
    • @r An AJO holding the resulting javafx.geometry.Point2D.
  • inverseDeltaTransform3D (double X, double Y, double Z)

    Inverse-transforms only the vector portion of a 3D point. Throws NonInvertibleTransformException if not invertible.

    • @p X is a double with the input X coordinate.
    • @p Y is a double with the input Y coordinate.
    • @p Z is a double with the input Z coordinate.
    • @r An AJO holding the resulting javafx.geometry.Point3D.