ch.sahits.game.openpatrician.engine.sea.IPathConverterpublic class BezierPathConverter
extends java.lang.Object
implements ch.sahits.game.openpatrician.engine.sea.IPathConverter
| Constructor | Description |
|---|---|
BezierPathConverter() |
| Modifier and Type | Method | Description |
|---|---|---|
long |
calculateDuration(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.clientserverinterface.service.PathInterpolator interpolator,
double fraction) |
|
java.util.Optional<javafx.scene.shape.Path> |
createPath(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
java.util.List<javafx.geometry.Point2D> pointedPath,
double scale) |
|
java.util.List<javafx.geometry.Point2D> |
reduceLinePoints(java.util.List<javafx.geometry.Point2D> initialPoints) |
Reduce the number of points that are needed to describe the path.
|
public java.util.Optional<javafx.scene.shape.Path> createPath(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
java.util.List<javafx.geometry.Point2D> pointedPath,
double scale)
createPath in interface ch.sahits.game.openpatrician.engine.sea.IPathConverterpublic long calculateDuration(ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.clientserverinterface.service.PathInterpolator interpolator,
double fraction)
calculateDuration in interface ch.sahits.game.openpatrician.engine.sea.IPathConverterpublic java.util.List<javafx.geometry.Point2D> reduceLinePoints(java.util.List<javafx.geometry.Point2D> initialPoints)
reduceLinePoints in interface ch.sahits.game.openpatrician.engine.sea.IPathConverterinitialPoints - initial point of the lineCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.