Overview
Script Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| public-read | ZERO_POINT | Point2D | ![]() |
The zero-point with coordinates (0.0; 0.0). |
Inherited Variables
Script Function Summary
- public add(p1: javafx.geometry.Point2D, p2: javafx.geometry.Point2D) : javafx.geometry.Point2D
- public createPoint(origin: javafx.geometry.Point2D, angle: Number, radius: Number) : javafx.geometry.Point2D
-
This function creates a new
Point2Dfrom given polar-coordinates.
This function creates a new
Point2Dfrom given polar-coordinates. The newPoint2Dis created from polar-coordinates (angle, radius) using a givenPoint2Das origin.-
Parameters
- origin
- The origin to start calculation from.
- angle
- The angle of the polar-coordinates.
- radius
- The radius of the polar-coordinates.
-
Returns
- Point2D
-
The created
Point2D.
Profile: desktop
- public distanceSqrd(p1: javafx.geometry.Point2D, p2: javafx.geometry.Point2D) : Number
- public getAngle(start: javafx.geometry.Point2D, end: javafx.geometry.Point2D) : Number
-
Returns the angle between the x-axis and a line defined by two points.
Returns the angle between the x-axis and a line defined by two points. The result will be in radians and in the range between -pi and pi.
-
Parameters
- start
- The startpoint of the vector of the requested angle.
- end
- The endpoint of the vector of the requested angle.
-
Returns
- Number
- The angle theta.
Profile: desktop
- public interpolate(start: javafx.geometry.Point2D, end: javafx.geometry.Point2D, t: Number) : javafx.geometry.Point2D
-
Calculates the interpolated point between two
Point2Dobjects.
Calculates the interpolated point between two
Point2Dobjects.-
Parameters
- start
-
The first
Point2D. - end
-
The second
Point2D. - t
- The interpolation-factor in the range [0..1].
-
Returns
- Point2D
-
The interpolated
Point2D.
Profile: desktop
