Uses of Class
com.amalgamasimulation.geometry.Segment
Packages that use Segment
Package
Description
-
Uses of Segment in com.amalgamasimulation.cranes
Methods in com.amalgamasimulation.cranes that return SegmentConstructors in com.amalgamasimulation.cranes with parameters of type Segment -
Uses of Segment in com.amalgamasimulation.geometry
Fields in com.amalgamasimulation.geometry with type parameters of type SegmentMethods in com.amalgamasimulation.geometry that return SegmentModifier and TypeMethodDescriptionPolyline.getConnectingSegment(Polyline otherPolyline) Returns the shortest possible segment that connects this polyline to the specified polyline.Segment.getConnectingSegment(Segment otherSegment) Returns the shortest segment directed from the current segment to the specified segment, or null if the two segments intersect.Segment.getCopy()Returns a copy of this segment.Polyline.getFirstSegment()Returns the first segment of this polyline, or null if this polyline has no segmentsPolyline.getLastSegment()Returns the last segment of this polyline, or null if this polyline has no segmentsSegment.getParallelSegment(double distance) Returns a segment which is parallel to this segment and has a specified distance to this segment.Segment.getReversed()Returns the segment with begin and end point swappedSegment.getRotated(double angle) Returns segment rotated to the specified angle around its begin point.Segment.getRotatedAround(double angle, Point rotationCenter) Returns segment rotated to the specified angle around the specified point (rotation center).Segment.getSegmentOnLineByAbsoluteOffsets(double beginPointAbsoluteOffset, double endPointAbsoluteOffset) Returns segment lying on the line of this segment located by the specified absolute offsets measured from the begin point of this segment.Segment.getSegmentOnLineByRelativeOffsets(double beginPointRelativeOffset, double endPointRelativeOffset) Returns segment lying on the line of this segment located by the specified relative offsets measured from the begin point of this segment.Returns a segment having begin and end points coordinate-wise subtracted the specified point.Segment.multiply(double factor) Returns a segment having all its coordinates multiplied by the specified factorReturns a segment having begin and end points coordinate-wise added to the specified point.Methods in com.amalgamasimulation.geometry that return types with arguments of type SegmentModifier and TypeMethodDescriptionPolyline.getSegments()Returns unmodifiable list of segments of this polyline.Methods in com.amalgamasimulation.geometry with parameters of type SegmentModifier and TypeMethodDescriptionbooleanChecks whether the other given segment is equal to this segment, i.e.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.getAllIntersections(Segment segment) Returns an unmodifiable list ofIntersectionDescriptorinstances representing the points at which this polyline intersects with the specified segment.Polyline.getAllIntersections(Segment segment, boolean considerEndPoints) Returns an unmodifiable list ofIntersectionDescriptorinstances representing the points at which this polyline intersects with the specified segment.static PolylineGeometryUtil.getArrowPolyline(Segment segment, double arrowSize) Returns a polyline of 2 segments representing the "pointing" part of the arrow at the end of the specified segment.Segment.getConnectingSegment(Segment otherSegment) Returns the shortest segment directed from the current segment to the specified segment, or null if the two segments intersect.Polyline.getFirstIntersection(Segment segment) Returns theIntersectionDescriptorobject describing polyline's intersection with the specified segment having minimal absolute offset, or null if this polyline does not intersect with the specified segment.Polyline.getFirstIntersection(Segment segment, boolean includeEndPoints) Returns theIntersectionDescriptorobject describing polyline's intersection with the specified segment having minimal absolute offset, or null if this polyline does not intersect with the specified segment.Segment.getFirstIntersection(Segment segment) Returns anIntersectionDescriptorinstance which contains information (intersection point as well as absolute and relative offsets of intersected segments) about intersection with specified segment.Segment.getFirstIntersection(Segment segment, boolean includeEndPoints) Returns anIntersectionDescriptorinstance which contains information (intersection point as well as absolute and relative offsets of intersected segments) about intersection of this segment with the specified segment.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.booleanPolyline.intersectsWith(Segment segment) Checks whether this polyline intersects with the specified segment.booleanPolyline.intersectsWith(Segment segment, boolean includeEndPoints) Checks whether this polyline intersects with the specified segment.booleanSegment.intersectsWith(Segment segment) Checks whether this segment intersects with the specified segment.booleanSegment.intersectsWith(Segment segment, boolean includeEndPoints) Checks whether this segment intersects with the specified segment. -
Uses of Segment in com.amalgamasimulation.graphagent
Methods in com.amalgamasimulation.graphagent with parameters of type SegmentModifier and TypeMethodDescriptionprotected voidGraphAgent.enterArcInternal(Graph<N, A>.Arc arc, double arcAbsOffset, Segment segment, double segmentAbsOffset) protected voidGraphAgent.enterSegment(Segment segment, double segmentAbsOffset) -
Uses of Segment in com.amalgamasimulation.trains
Methods in com.amalgamasimulation.trains that return SegmentModifier and TypeMethodDescriptionRailCar.getAnimationSegment()Returns the animationSegmentcorresponding to this railcar’s position along the train’s current animation polyline.