Class BezierCurveControls
- java.lang.Object
-
- ch.sahits.game.openpatrician.javafx.model.BezierCurveControls
-
public class BezierCurveControls extends java.lang.Object
This data class presents a point and two control points that can be used to add a CubicCurve to a Bèzier path. This data model can be used in conjunction with CurveTo, where the start point of the cubic curve is the current point of the path.controlPoint1
belongs to that point and defines the outgoing of the curve.point
is the end point of the curve andcontrolPoint2
defines the incoming of the curve.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Jan 06, 2016
-
-
Field Summary
Fields Modifier and Type Field Description private javafx.geometry.Point2D
controlPoint1
private javafx.geometry.Point2D
controlPoint2
private javafx.geometry.Point2D
point
-
Constructor Summary
Constructors Constructor Description BezierCurveControls()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.geometry.Point2D
getControlPoint1()
Retrieve the outgoing control point for the start point of this segment of the curve.javafx.geometry.Point2D
getControlPoint2()
Retrieve the incoming control point for the end point of this segment of the curve.javafx.geometry.Point2D
getPoint()
Retrieve the enpoint of the curve.
-
-
-
Method Detail
-
getPoint
public javafx.geometry.Point2D getPoint()
Retrieve the enpoint of the curve.- Returns:
- endpoint
-
getControlPoint1
public javafx.geometry.Point2D getControlPoint1()
Retrieve the outgoing control point for the start point of this segment of the curve.- Returns:
- control point for the current position on the path.
-
getControlPoint2
public javafx.geometry.Point2D getControlPoint2()
Retrieve the incoming control point for the end point of this segment of the curve.- Returns:
- control point for
point
-
-