Uses of Class
com.amalgamasimulation.geometry.Point
Packages that use Point
Package
Description
-
Uses of Point in com.amalgamasimulation.animation.fx
Fields in com.amalgamasimulation.animation.fx with type parameters of type PointModifier and TypeFieldDescriptionprotected List<BiConsumer<javafx.scene.input.MouseEvent, Point>> FX2DAnimationView.clickHandlersprotected List<BiConsumer<javafx.scene.input.MouseEvent, Point>> FX2DAnimationView.hoverHandlersMethods in com.amalgamasimulation.animation.fx that return PointModifier and TypeMethodDescriptionFX2DAnimationView.toCanvasPoint(Point logicalPoint) FX2DAnimationView.toLogicalPoint(double canvasX, double canvasY) Methods in com.amalgamasimulation.animation.fx with parameters of type PointModifier and TypeMethodDescriptionvoidFX2DAnimationView.navigateTo(Point minPoint, Point maxPoint) FX2DAnimationView.toCanvasPoint(Point logicalPoint) Method parameters in com.amalgamasimulation.animation.fx with type arguments of type PointModifier and TypeMethodDescriptionvoidFX2DAnimationView.addClickHandler(BiConsumer<javafx.scene.input.MouseEvent, Point> handler) voidFX2DAnimationView.addHoverHandler(BiConsumer<javafx.scene.input.MouseEvent, Point> handler) -
Uses of Point in com.amalgamasimulation.cranes
Subclasses of Point in com.amalgamasimulation.cranesMethods in com.amalgamasimulation.cranes that return PointModifier and TypeMethodDescriptionCrane.getCurrentAnimationPoint()CranePosition.getPoint()CraneBay.getTopLeftCorner()Methods in com.amalgamasimulation.cranes with parameters of type PointModifier and TypeMethodDescriptionbooleanCraneBay.isPointBelongToCraneBay(Point point) CraneBay.setTopLeftCorner(Point topLeftCorner) -
Uses of Point in com.amalgamasimulation.desktop.ui.editor.utils
Methods in com.amalgamasimulation.desktop.ui.editor.utils that return PointModifier and TypeMethodDescriptionCoordinatesConverter.lonLatToLogicalPoint(double longitude, double latitude) -
Uses of Point in com.amalgamasimulation.geometry
Fields in com.amalgamasimulation.geometry with type parameters of type PointMethods in com.amalgamasimulation.geometry that return PointModifier and TypeMethodDescriptionSegment.getBeginPoint()Returns the begin point of this segment.Polygon.getCenterPoint()Returns the center point of the polygon.Polyline.getClosestPointTo(Point point) Returns the first point on this polyline that is closest to the specified point.Segment.getClosestPointTo(Point point) Returns the point on this segment closest to the specified point.Point.getCopy()Returns a copy of this point, i.e.Segment.getEndPoint()Returns the end point of segment.Polyline.getFirstIntersectionPoint(Polyline polyline) Returns the first intersection point of this polyline and the specified other polyline, ornullif the polylines do not intersect.Polyline.getFirstIntersectionPoint(Polyline polyline, boolean considerEndPoints) Returns the first intersection point of this polyline and the specified other polyline, ornullif the polylines do not intersect.Polyline.getFirstIntersectionPoint(Segment segment) Returns the point of this polyline's intersection with the specified segment having minimal absolute offset, or null if this polyline does not intersect with the specified segment.Polyline.getFirstIntersectionPoint(Segment segment, boolean includeEndPoints) Returns the point of this polyline's intersection with the specified segment having minimal absolute offset, or null if this polyline does not intersect with the specified segment.Segment.getFirstIntersectionPoint(Segment segment) Returns first intersection point of segment and the specified another segment.Segment.getFirstIntersectionPoint(Segment segment, boolean includeEndPoints) Returns first intersection point of segment and the specified another segment.Polyline.getFirstPoint()Returns the first point of this polyline, or null if this polyline is emptystatic Point[]GeometryUtil.getHermiteCurvePoints(Point[] basePoints, int numberOfSegments) Returns a series of points along a Hermite curve based on provided control points.IntersectionDescriptor.getIntersectionPoint()Returns the intersection point.Polyline.getLastPoint()Returns the last point of this polyline, or null if this polyline is emptyPolyline.getMaxRectPoint()Returns the maximum point of this polyline's bounds.Polyline.getMinRectPoint()Returns the minimum point of this polyline's bounds.Polyline.getPointByAbsoluteOffset(double absoluteOffset) Returns point on this polyline by its absolute offset on this polyline, i.e.Polyline.getPointByRelativeOffset(double relativeOffset) Returns point on this polyline by its relative offset on this polyline.Segment.getPointOnLineByAbsoluteOffset(double absoluteOffset) Returns point on line of this segment by its absolute offset from the begin point of this segment.Segment.getPointOnLineByRelativeOffset(double relativeOffset) Returns point on line of this segment by its relative offset from the begin point of this segment.Returns a new instance of point which is a result of coordinate-wise subtraction of this point and the specified point.Point.multiply(double factor) Returns a new instance of point which is a result of coordinate-wise multiplication of this point by the specified factorReturns a new instance of point which is a coordinate-wise sum of this point and the specified point.Point.rotate(double angle) Returns a new instance of point which is the result of rotation of this point around the (0, 0) point by the specified angle in radians.Point.rotateAround(double angle, Point rotationCenter) Returns a new instance of point which is the result of rotation of this point around the specified point (rotation center) by the specified angle in radians.Methods in com.amalgamasimulation.geometry that return types with arguments of type PointModifier and TypeMethodDescriptionPolyline.getAllIntersectionPoints(Polyline polyline) Returns a list of points where this polyline intersects with the specified other polyline.Polyline.getAllIntersectionPoints(Polyline polyline, boolean considerEndPoints) Returns a list of points where this polyline intersects with the specified other polyline.Polyline.getAllIntersectionPoints(Segment segment) Returns an unmodifiable list of points at which this polyline intersects with the specified segment.Polyline.getAllIntersectionPoints(Segment segment, boolean considerEndPoints) Returns an unmodifiable list of points at which this polyline intersects with the specified segment.Polyline.getPointAndSegmentIndexByAbsoluteOffset(double absoluteOffset) Polyline.getPointAndSegmentIndexByAbsoluteOffset(double absoluteOffset, EpsilonComparator comparator) Polyline.getPoints()Returns unmodifiable list of points of this polyline.Polyline.getPointsOfSubPolylineByAbsoluteOffsets(double beginPointAbsoluteOffset, double endPointAbsoluteOffset) Returns list of points that constitutes a subpolyline that is a part of this polyline located between the specified absolute offsets.Polyline.getPointsOfSubPolylineByAbsoluteOffsets(double beginPointAbsoluteOffset, double endPointAbsoluteOffset, EpsilonComparator comparator) Returns list of points that constitutes a subpolyline that is a part of this polyline located between the specified absolute offsets.Polyline.getPointsOfSubPolylineByRelativeOffsets(double beginPointRelativeOffset, double endPointRelativeOffset) Returns a list of points that constitutes a subpolyline that is a part of this polyline located between the specified relative offsets.Methods in com.amalgamasimulation.geometry with parameters of type PointModifier and TypeMethodDescriptionabstract booleanAbstractGeometricPrimitive.containsPoint(Point point) Checks whether this primitive contains the specified pointbooleanPoint.containsPoint(Point point) booleanPolyline.containsPoint(Point point) booleanPolyline.containsPoint(Point point, boolean includeEndPoint) Checks whether this polyline contains the specified point, i.e.booleanSegment.containsPoint(Point point) Checks whether segment contains the specified point, i.e.booleanSegment.containsPoint(Point point, boolean includeEndPoint) Checks whether this segment contains the specified point, i.e.static doubleGeometryUtil.distanceBetweenLonLatsMeters(Point lonLat1, Point lonLat2) Calculates approximate distance between the first and the second geographical points, in meters.doublePoint.distanceTo(Point p) Returns the distance from this point to the specified point.doublePolyline.distanceToPoint(Point point) Returns the distance from the specified point to this polyline.doubleSegment.distanceToPoint(Point point) Returns the shortest distance from segment to the specified point.booleanChecks whether the other given point is equal to this point, i.e.booleanPoint.equals(Point point, EpsilonComparator comparator) Checks whether the other given point is equal to this point, i.e.static PolylineGeometryUtil.getAveragePolyline(Point beginPoint, Point endPoint, List<Polyline> polylines, double averagingRadius) Returns the polyline that is the "average" polyline across the specified list of polylines.doublePolyline.getClosestPointAbsOffset(Point point) Returns the smallest absolute offset of the point on this polyline that is closest to the specified point.Polyline.getClosestPointTo(Point point) Returns the first point on this polyline that is closest to the specified point.Segment.getClosestPointTo(Point point) Returns the point on this segment closest to the specified point.static Point[]GeometryUtil.getHermiteCurvePoints(Point[] basePoints, int numberOfSegments) Returns a series of points along a Hermite curve based on provided control points.Polyline.getIntersection(Point point) Returns theIntersectionDescriptorobject describing polyline's intersection with the specified point, or null if the specified point does not lie on this polyline.Polyline.getIntersection(Point point, boolean includeEndPoint) Returns theIntersectionDescriptorobject describing polyline's intersection with the specified point, or null if the specified point does not lie on this polyline.doubleSegment.getPointAbsoluteOffset(Point point) Returns absolute offset of the specified point lying on the line of the segment, or Double.NaN if the point does not lie on the line of the segment.doubleSegment.getPointRelativeOffset(Point point) Returns relative offset of the specified point lying on the line of the segment, or Double.NaN if the point does not lie on the line of the segment.static PolygonGeometryUtil.getRectangleAround(Point point, double width, double height) Returns a polygon consisting of 4 segments that is a rectangle with the specified side width and height with center at the specified point.static PolygonGeometryUtil.getRectangleByCornerPoints(Point firstCornerPoint, Point secondCornerPoint) Creates aPolygoninstance representing an axis-aligned rectangle using two opposite corner points.Segment.getRotatedAround(double angle, Point rotationCenter) Returns segment rotated to the specified angle around the specified point (rotation center).static PolygonGeometryUtil.getSquareAround(Point point, double squareSide) Returns a polygon consisting of 4 segments that is a square with the specified side length with center at the specified point.doubleReturns the heading from this point towards the specified point, in radians.booleanPolygon.isPointInside(Point point) Checks whether a given point is inside the polygon or on its boundary.Returns a new instance of point which is a result of coordinate-wise subtraction of this point and the specified point.Returns the polyline that is point-wise difference of this polyline and the specified point.Returns a segment having begin and end points coordinate-wise subtracted the specified point.Returns a new instance of point which is a coordinate-wise sum of this point and the specified point.Returns the polyline that is point-wise sum of this polyline and the specified point.Returns a segment having begin and end points coordinate-wise added to the specified point.Point.rotateAround(double angle, Point rotationCenter) Returns a new instance of point which is the result of rotation of this point around the specified point (rotation center) by the specified angle in radians.voidSegment.setBeginPoint(Point beginPoint) Sets a new begin point to this segment.voidSegment.setEndPoint(Point endPoint) Sets a new end point to this segment.doublePoint.squaredDistanceTo(Point p) Returns the squared distance from this point to the specified point.Method parameters in com.amalgamasimulation.geometry with type arguments of type PointModifier and TypeMethodDescriptionbooleanPolygon.containsPoints(List<Point> points) Checks whether all points in the given list are on the boundary of the polygon .static PolygonGeometryUtil.getConvexPolygonForPoints(List<Point> points) Computes the convex hull (minimal convex polygon) for the given set of points using the Jarvis March algorithm.static <N,A> void GeometryUtil.groupAroundNode(Graph<N, A> graph, Graph<N, A>.Node groupingNode, double radius, Function<N, Point> pointExtractor, Function<A, Polyline> polylineExtractor, BiFunction<A, Polyline, A> newArcValueSupplier) Deprecated.Constructors in com.amalgamasimulation.geometry with parameters of type PointModifierConstructorDescriptionIntersectionDescriptor(Point intersectionPoint, double firstOperandRelativeOffset, double firstOperandAbsoluteOffset, double secondOperandRelativeOffset, double secondOperandAbsoluteOffset) Creates a new instance of intersection descriptor.Creates a new instance of polyline with specified pointsCreates a new instance of Segment class with specified begin and end points.Constructor parameters in com.amalgamasimulation.geometry with type arguments of type Point -
Uses of Point in com.amalgamasimulation.geometry.geometry3d
Methods in com.amalgamasimulation.geometry.geometry3d that return PointModifier and TypeMethodDescriptionPoint3D.getPoint2D()Returns the 2D projection (x and y coordinates) of this point.Constructors in com.amalgamasimulation.geometry.geometry3d with parameters of type Point -
Uses of Point in com.amalgamasimulation.graphagent
Methods in com.amalgamasimulation.graphagent that return PointModifier and TypeMethodDescriptionGraphAgent.getCurrentAnimationPoint()Returns the currentPointin 2D space pointing to the current location of this agent, or a point with infinite coordinates (new Point(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)if this agent is not currently in graph.LongAgent.getCurrentHeadAnimationPoint()Returns aPointwhere the head of this long agent is currently located, ornullif this long agent is not in a graph.GraphAgent.getCurrentPoint()Returns the currentPointwhere this agent is currently located in 2D space.LongAgent.getCurrentTailAnimationPoint()Returns aPointwhere the tail of this long agent is currently located, ornullif this long agent is not in a graph.AgentGraphNodeImpl.getPoint()GeometricGraphNode.getPoint()Returns thePointthat defines the geometric location of this node in a geometric graph.GeometricGraphPosition.getPoint()Returns thePointof this position that represents the location of this position in 2D-space.Methods in com.amalgamasimulation.graphagent with parameters of type PointModifier and TypeMethodDescriptionvoidSets the specified point to this node.Constructors in com.amalgamasimulation.graphagent with parameters of type PointModifierConstructorDescriptionAgentGraphNodeImpl(Point point) Creates a new instance ofAgentGraphNodeImplwith the specifiedPoint.LongAgentGraphNodeImpl(Point point) Creates a new instance ofLongAgentGraphNodeImplwith the specifiedPoint. -
Uses of Point in com.amalgamasimulation.graphicaleditor.renderers
Methods in com.amalgamasimulation.graphicaleditor.renderers that return types with arguments of type PointModifier and TypeMethodDescriptionGroupShapeRenderer.getSiblingsPoints(double x, double y) Retrieves all distinct endpoints of line segments located in the tile containing the specified point and its eight neighboring tiles. -
Uses of Point in com.amalgamasimulation.graphicaleditor.utils
Methods in com.amalgamasimulation.graphicaleditor.utils that return PointModifier and TypeMethodDescriptionTiledMapCoordinatesConverter.getBaseMapPosition()Returns base map position, i.e.static PointTiledMapCoordinatesConverter.getLonLatPoint(String lonDMS, String latDMS) TiledMapCoordinatesConverter.logicalPointToLonLat(Point logicalPoint) Converts a point in logical coordinates system to geographical point of (lon, lat)TiledMapCoordinatesConverter.logicalPointToMapPosition(Point logicalPoint, double scale) Converts point in logical coordinates system to tiled map positionTiledMapCoordinatesConverter.lonLatToLogicalPoint(Point lonLat) Converts a geographical point of (lon, lat) to a point in logical coordinates systemTiledMapCoordinatesConverter.mapPositionToLogicalPoint(Point mapPosition, double scale) Converts tiled map position to point in logical coordinates systemMethods in com.amalgamasimulation.graphicaleditor.utils with parameters of type PointModifier and TypeMethodDescriptionTiledMapCoordinatesConverter.logicalPointToLonLat(Point logicalPoint) Converts a point in logical coordinates system to geographical point of (lon, lat)TiledMapCoordinatesConverter.logicalPointToMapPosition(Point logicalPoint, double scale) Converts point in logical coordinates system to tiled map positionTiledMapCoordinatesConverter.lonLatToLogicalPoint(Point lonLat) Converts a geographical point of (lon, lat) to a point in logical coordinates systemTiledMapCoordinatesConverter.mapPositionToLogicalPoint(Point mapPosition, double scale) Converts tiled map position to point in logical coordinates systemConstructors in com.amalgamasimulation.graphicaleditor.utils with parameters of type PointModifierConstructorDescriptionTiledMapCoordinatesConverter(Point baseLonLat, double metersInPixel, double baseMapSizeMeters) Creates a new instance of converter by base geographical coordinate point (lon, lat), scale of logical coordinates and initially displayed map size.TiledMapCoordinatesConverter(Point baseMapPoint, int baseMapZoom) Creates a new instance of converter by base point in tiled map coordinates and base zoom of the tiled map. -
Uses of Point in com.amalgamasimulation.graphicaleditor.views
Fields in com.amalgamasimulation.graphicaleditor.views declared as PointModifier and TypeFieldDescriptionprotected PointCustomInfiniteCanvas.lastMapPositionprotected PointCustomInfiniteCanvas.lastMapSizeMethods in com.amalgamasimulation.graphicaleditor.views that return types with arguments of type PointModifier and TypeMethodDescriptionCustomInfiniteCanvas.getTileLayerSiblingsPoints(double x, double y) Retrieves all distinct endpoints of line segments located in the tile containing the specified point and its eight neighboring tiles. -
Uses of Point in com.amalgamasimulation.trains
Methods in com.amalgamasimulation.trains with parameters of type PointModifier and TypeMethodDescriptionTrainsEnvironment.addRailNode(String name, Point point) Creates a newRailNodewith the given name and position, adds it to the graph, and returns the created node.TrainsEnvironment.createNewRailNode(String name, Point point) Creates a newRailNodeat the specified point with the given name.Constructors in com.amalgamasimulation.trains with parameters of type Point