Uses of Interface
org.arakhne.afc.math.geometry.d2.Point2D
-
-
Uses of Point2D in org.arakhne.afc.agentmotion
Methods in org.arakhne.afc.agentmotion that return Point2D Modifier and Type Method Description Point2D<?,?>
EvadingMotionAlgorithm. predictTargetPosition(Point2D<?,?> targetPosition, Vector2D<?,?> targetLinearMotion)
Predict the next position of the target.Point2D<?,?>
PursuingMotionAlgorithm. predictTargetPosition(Point2D<?,?> targetPosition, Vector2D<?,?> targetLinearMotion)
Predict the next position of the target.Methods in org.arakhne.afc.agentmotion with parameters of type Point2D Modifier and Type Method Description Vector2D<?,?>
ArrivingMotionAlgorithm. calculate(Point2D<?,?> position, double linearSpeed, double maxLinear, Point2D<?,?> target)
Calculate the linear motion for arriving the target point.Vector2D<?,?>
EvadingMotionAlgorithm. calculate(Point2D<?,?> position, double linearSpeed, double maxLinear, Point2D<?,?> targetPosition, Vector2D<?,?> targetLinearMotion)
Calculate the linear motion for evading the given target point.double
FacingMotionAlgorithm. calculate(Point2D<?,?> position, Vector2D<?,?> orientation, double angularSpeed, double maxAngular, Point2D<?,?> target)
Calculate the rotation for facing the target point.Vector2D<?,?>
FleeingMotionAlgorithm. calculate(Point2D<?,?> position, double linearSpeed, double maxLinear, Point2D<?,?> target)
Calculate the linear motion for fleeing the target position.Vector2D<?,?>
PursuingMotionAlgorithm. calculate(Point2D<?,?> position, double linearSpeed, double maxLinear, Point2D<?,?> targetPosition, Vector2D<?,?> targetLinearMotion)
Calculate the linear motion for pursuing the target point.AgentMotion
RandomMotionAlgorithm. calculate(Point2D<?,?> position, Vector2D<?,?> orientation, double linearSpeed, double maxLinear, double angularSpeed, double maxAngular)
Calculate the random motion.Vector2D<?,?>
SeekingMotionAlgorithm. calculate(Point2D<?,?> position, double linearSpeed, double maxLinear, Point2D<?,?> target)
Calculate the linear motion for seeking the target point.Point2D<?,?>
EvadingMotionAlgorithm. predictTargetPosition(Point2D<?,?> targetPosition, Vector2D<?,?> targetLinearMotion)
Predict the next position of the target.Point2D<?,?>
PursuingMotionAlgorithm. predictTargetPosition(Point2D<?,?> targetPosition, Vector2D<?,?> targetLinearMotion)
Predict the next position of the target. -
Uses of Point2D in org.arakhne.afc.agentmotion.common
Methods in org.arakhne.afc.agentmotion.common that return Point2D Modifier and Type Method Description Point2D<?,?>
AbstractTargetPositionPredictionAlgorithm. predictTargetPosition(Point2D<?,?> targetPosition, Vector2D<?,?> targetLinearMotion)
Predict the next position of the target.Methods in org.arakhne.afc.agentmotion.common with parameters of type Point2D Modifier and Type Method Description Vector2D<?,?>
EvadingAlgorithm. calculate(Point2D<?,?> position, double linearSpeed, double maxLinear, Point2D<?,?> targetPosition, Vector2D<?,?> targetLinearMotion)
double
FacingAlgorithm. calculate(Point2D<?,?> position, Vector2D<?,?> orientation, double angularSpeed, double maxAngular, Point2D<?,?> target)
Vector2D<?,?>
FleeingAlgorithm. calculate(Point2D<?,?> position, double linearSpeed, double maxLinear, Point2D<?,?> target)
Vector2D<?,?>
PursuingAlgorithm. calculate(Point2D<?,?> position, double linearSpeed, double maxLinear, Point2D<?,?> targetPosition, Vector2D<?,?> targetLinearMotion)
AgentMotion
RandomAlgorithm. calculate(Point2D<?,?> position, Vector2D<?,?> orientation, double linearSpeed, double maxLinear, double angularSpeed, double maxAngular)
Vector2D<?,?>
SeekingAlgorithm. calculate(Point2D<?,?> position, double linearSpeed, double maxLinear, Point2D<?,?> target)
Point2D<?,?>
AbstractTargetPositionPredictionAlgorithm. predictTargetPosition(Point2D<?,?> targetPosition, Vector2D<?,?> targetLinearMotion)
Predict the next position of the target. -
Uses of Point2D in org.arakhne.afc.agentmotion.kinematic
Methods in org.arakhne.afc.agentmotion.kinematic with parameters of type Point2D Modifier and Type Method Description Vector2D<?,?>
ArrivingKinematicAlgorithm. calculate(Point2D<?,?> position, double linearSpeed, double maxLinearSpeed, Point2D<?,?> target)
AgentMotion
RandomKinematicAlgorithm. calculate(Point2D<?,?> position, Vector2D<?,?> orientation, double linearSpeed, double maxLinearSpeed, double angularSpeed, double maxAngularSpeed)
-
Uses of Point2D in org.arakhne.afc.agentmotion.steering
Methods in org.arakhne.afc.agentmotion.steering with parameters of type Point2D Modifier and Type Method Description Vector2D<?,?>
ArrivingSteeringAlgorithm. calculate(Point2D<?,?> position, double linearSpeed, double maxLinear, Point2D<?,?> target)
-
Uses of Point2D in org.arakhne.afc.attrs.attr
Methods in org.arakhne.afc.attrs.attr that return Point2D Modifier and Type Method Description Point2D<?,?>
AttributeValue. getPoint()
Replies the value of this metadata.Point2D<?,?>
AttributeValueImpl. getPoint()
Point2D<?,?>[]
AttributeValue. getPolyline()
Replies the value of this metadata.Point2D<?,?>[]
AttributeValueImpl. getPolyline()
Methods in org.arakhne.afc.attrs.attr with parameters of type Point2D Modifier and Type Method Description void
AttributeValue. addToPolyline(Point2D<?,?>... pts)
Add a point to the end of the polyline.void
AttributeValueImpl. addToPolyline(Point2D<?,?>... pts)
void
AttributeValue. setPoint(Point2D<?,?> pt)
Set the value of this metadata.void
AttributeValueImpl. setPoint(Point2D<?,?> value)
void
AttributeValue. setPolyline(Point2D<?,?>... pts)
Set the value of this metadata.void
AttributeValueImpl. setPolyline(Point2D<?,?>... value)
Method parameters in org.arakhne.afc.attrs.attr with type arguments of type Point2D Modifier and Type Method Description void
AttributeValue. addToPolyline(Collection<? extends Point2D<?,?>> pts)
Add a point to the end of the polyline.void
AttributeValueImpl. addToPolyline(Collection<? extends Point2D<?,?>> pts)
void
AttributeValue. setPolyline(Collection<? extends Point2D<?,?>> pts)
Set the value of this metadata.void
AttributeValueImpl. setPolyline(Collection<? extends Point2D<?,?>> value)
Constructors in org.arakhne.afc.attrs.attr with parameters of type Point2D Constructor Description AttributeImpl(String name, Point2D<?,?> value)
Constructor from the given value.AttributeImpl(String name, Point2D<?,?>[] value)
Constructor from the given value.AttributeValueImpl(Point2D<?,?> value)
Constructor from the given value.AttributeValueImpl(Point2D<?,?>[] value)
Constructor from the given value. -
Uses of Point2D in org.arakhne.afc.gis
Methods in org.arakhne.afc.gis with parameters of type Point2D Modifier and Type Method Description P
GISElementSet. getNearest(Point2D<?,?> position)
Replies the nearest object from the specified point.org.eclipse.xtext.xbase.lib.Pair<P,Double>
GISElementSet. getNearestData(Point2D<?,?> position)
Replies the nearest object from the specified point, and its distance to the point.P
GISPolylineSet. getNearestEnd(Point2D<?,?> position)
Replies the object that has the nearest end to the specified point. -
Uses of Point2D in org.arakhne.afc.gis.bus.network
Methods in org.arakhne.afc.gis.bus.network with parameters of type Point2D Modifier and Type Method Description double
BusHub. distance(Point2D<?,?> point)
Replies the distance between the given point and this bus hub.double
BusItineraryHalt. distance(Point2D<?,?> point)
Replies the distance between the given point and this bus halt.double
BusStop. distance(Point2D<?,?> point)
Replies the distance between the given point and this bus stop.BusItineraryHalt
BusItinerary. getNearestBusHalt(Point2D<?,?> point)
Replies the nearest bus halt to the given point.BusHub
BusNetwork. getNearestBusHub(Point2D<?,?> point)
Replies the nearest bus hub to the given point.BusStop
BusNetwork. getNearestBusStop(Point2D<?,?> point)
Replies the nearest bus stop to the given point.RoadSegment
BusItinerary. getNearestRoadSegment(Point2D<?,?> point)
Replies the nearest road segment from this itinerary to the given point.boolean
BusItinerary. putHaltOnRoad(BusItineraryHalt halt, RoadSegment road, Point2D<?,?> nearPoint)
Put the given bus itinerary halt on the nearest point on road depending on nearPoint position. -
Uses of Point2D in org.arakhne.afc.gis.coordinate
Methods in org.arakhne.afc.gis.coordinate with parameters of type Point2D Modifier and Type Method Description abstract Point2d
MapMetricProjection. convertTo(MapMetricProjection newProjection, Point2D<?,?> point)
Convert the given point from the current map projection to the given map projection.abstract GeodesicPosition
MapMetricProjection. convertToGeodesicPosition(Point2D<?,?> point)
Convert the given point in the current map projection into a GPS point. -
Uses of Point2D in org.arakhne.afc.gis.grid
Methods in org.arakhne.afc.gis.grid with parameters of type Point2D Modifier and Type Method Description AroundCellIterable<P>
Grid. getGridCellsAround(Point2D<?,?> position, double maximalDistance)
Replies the cells around the specified point.P
MapElementGridSet. getNearest(Point2D<?,?> position)
org.eclipse.xtext.xbase.lib.Pair<P,Double>
MapElementGridSet. getNearestData(Point2D<?,?> position)
P
MapPolylineGridSet. getNearestEnd(Point2D<?,?> position)
-
Uses of Point2D in org.arakhne.afc.gis.location
Methods in org.arakhne.afc.gis.location with parameters of type Point2D Modifier and Type Method Description static boolean
GeoLocationUtil. epsilonEqualsDistance(Point2D<?,?> p1, Point2D<?,?> p2)
Replies if the specified points are approximatively equal. -
Uses of Point2D in org.arakhne.afc.gis.mapelement
Methods in org.arakhne.afc.gis.mapelement with parameters of type Point2D Modifier and Type Method Description void
MapComposedElement.PointGroup. add(Point2D<?,?> point, int index)
Insert a point at the specified index.void
MapComposedElement. addGroup(Point2D<?,?> point)
Add the specified point into a newgroup.int
MapComposedElement. addPoint(Point2D<?,?> point)
Add the specified point at the end of the last group.int
MapComposedElement. addPoint(Point2D<?,?> point, int indexGroup)
Add the specified point at the end of the specified group.protected void
MapPolyline. computeGeoLocationForDistance(double desired_distance, double shifting, Point2D<?,?> geoLocation, Vector2D<?,?> tangent)
Replies the geo-location of the point described by the specified distance.boolean
MapComposedElement. contains(Point2D<?,?> point, double delta)
Replies if the specified point (x,y) was inside the figure of this MapElement.boolean
MapElement. contains(Point2D<?,?> point)
Replies if the specified point (x,y) was inside the figure of this MapElement.abstract boolean
MapElement. contains(Point2D<?,?> point, double delta)
Replies if the specified point (x,y) was inside the figure of this MapElement.boolean
MapPonctualElement. contains(Point2D<?,?> point, double delta)
Replies if the specified point (x,y) was inside the figure of this MapElement.boolean
MapComposedElement. containsPoint(Point2D<?,?> point)
Check if point p is contained in this coordinates collections.boolean
MapComposedElement. containsPoint(Point2D<?,?> point, int groupIndex)
Check if point p is contained in this coordinates collections.double
MapPolygon. distance(Point2D<?,?> point, double width)
Replies the distance between this figure and the specified point.double
MapPolyline. distance(Point2D<?,?> point, double width)
Replies the distance between this figure and the specified point.double
MapPolyline. distanceToEnd(Point2D<?,?> point)
Replies the distance between the nearest end of this MapElement and the point.double
MapPolyline. distanceToEnd(Point2D<?,?> point, double width)
Replies the distance between the nearest end of this MapElement and the point.double
MapCircle. getDistance(Point2D<?,?> point)
Replies the distance between this MapCircle and point.abstract double
MapElement. getDistance(Point2D<?,?> point)
Replies the distance between this MapElement and point.double
MapMultiPoint. getDistance(Point2D<?,?> point)
Replies the distance between this MapElement and point.double
MapPolygon. getDistance(Point2D<?,?> point)
Replies the distance between this MapElement and point.double
MapPolyline. getDistance(Point2D<?,?> point)
Replies the distance between this MapElement and point.double
MapPonctualElement. getDistance(Point2D<?,?> point)
int
MapComposedElement.PointGroup. getMany(int index, Point2D<?,?>... points)
Replies the points from the specified index.Point1d
MapPolyline. getNearestPosition(Point2D<?,?> pos)
Return the nearest point 1.5D from a 2D position.Point1d
MapPolyline. getNearestPosition(Point2D<?,?> pos, double lateralDistance)
Return the nearest point 1.5D from a 2D position.int
MapComposedElement. getPointIndex(int groupIndex, Point2D<?,?> point2d)
Replies the global index of the point2d in the given group.int
MapComposedElement. insertPointAt(Point2D<?,?> point, int indexGroup, int indexInGroup)
Insert the specified point at the given index in the specified group.void
MapComposedElement.PointGroup. set(int index, Point2D<?,?> point)
Set the point at the specified index.void
MapPonctualElement. setLocation(Point2D<?,?> location)
Set the position of this point.boolean
MapComposedElement. setPointAt(int groupIndex, int indexInGroup, Point2D<?,?> point)
Set the specified point at the given index in the specified group.boolean
MapComposedElement. setPointAt(int groupIndex, int indexInGroup, Point2D<?,?> point, boolean canonize)
Set the specified point at the given index in the specified group.boolean
MapComposedElement. setPointAt(int index, Point2D<?,?> point)
Set the specified point at the given index.boolean
MapComposedElement. setPointAt(int index, Point2D<?,?> point, boolean canonize)
Set the specified point at the given index.Constructors in org.arakhne.afc.gis.mapelement with parameters of type Point2D Constructor Description MapCircle(UUID id, AttributeCollection attributeSource, Point2D<?,?> point)
Create a new map element.MapCircle(UUID id, AttributeCollection attributeSource, Point2D<?,?> point, double radius)
Create a new map element.MapCircle(UUID id, Point2D<?,?> point)
Create a new map element.MapCircle(UUID id, Point2D<?,?> point, double radius)
Create a new map element.MapCircle(AttributeCollection attributeSource, Point2D<?,?> point)
Create a new map element.MapCircle(AttributeCollection attributeSource, Point2D<?,?> point, double radius)
Create a new map element.MapCircle(Point2D<?,?> point)
Create a new map element.MapCircle(Point2D<?,?> point, double radius)
Create a new map element.MapPoint(UUID id, AttributeCollection attributeSource, Point2D<?,?> point)
Create a new map element.MapPoint(UUID id, Point2D<?,?> point)
Create a new map element.MapPoint(AttributeCollection attributeSource, Point2D<?,?> point)
Create a new map element.MapPoint(Point2D<?,?> point)
Create a new map element.MapPonctualElement(UUID id, AttributeCollection attributeSource, Point2D<?,?> geo_location)
Create a new map element.MapPonctualElement(UUID id, Point2D<?,?> geo_location)
Create a new map element. -
Uses of Point2D in org.arakhne.afc.gis.maplayer
Methods in org.arakhne.afc.gis.maplayer with parameters of type Point2D Modifier and Type Method Description boolean
MapLayer. contains(Point2D<?,?> point)
Replies if the specified point (x,y) was inside the figure of this MapElement.boolean
MapLayer. contains(Point2D<?,?> point, double delta)
Replies if the specified point (x,y) was inside the figure of this MapElement. -
Uses of Point2D in org.arakhne.afc.gis.road
Methods in org.arakhne.afc.gis.road with parameters of type Point2D Modifier and Type Method Description int
RoadConnectionWithArrivalSegment. compareTo(Point2D<?,?> pts)
int
StandardRoadConnection. compareTo(Point2D<?,?> pts)
RoadConnection
StandardRoadNetwork. connectSegmentEndPoint(RoadConnection connection, RoadSegment segment, Point2D<?,?> position)
RoadConnection
StandardRoadNetwork. connectSegmentStartPoint(RoadConnection connection, RoadSegment segment, Point2D<?,?> position)
boolean
SubRoadNetwork.WrapSegment. contains(Point2D<?,?> point)
boolean
SubRoadNetwork.WrapSegment. contains(Point2D<?,?> point, double delta)
double
RoadPolyline. distance(Point2D<?,?> point)
double
SubRoadNetwork.WrapSegment. distance(Point2D<?,?> point)
double
SubRoadNetwork.WrapSegment. distance(Point2D<?,?> point, double width)
double
SubRoadNetwork.WrapSegment. distanceToEnd(Point2D<?,?> point)
double
SubRoadNetwork.WrapSegment. distanceToEnd(Point2D<?,?> point, double width)
void
RoadPolyline. getGeoLocationForDistance(double desired_distance, double shifting, Point2D<?,?> geoLocation)
void
RoadPolyline. getGeoLocationForDistance(double desired_distance, double shifting, Point2D<?,?> geoLocation, Vector2D<?,?> tangent)
void
RoadPolyline. getGeoLocationForDistance(double desired_distance, Point2D<?,?> geoLocation)
void
SubRoadNetwork.WrapSegment. getGeoLocationForDistance(double desired_distance, double shifting, Point2D<?,?> geoLocation)
void
SubRoadNetwork.WrapSegment. getGeoLocationForDistance(double desired_distance, double shifting, Point2D<?,?> geoLocation, Vector2D<?,?> tangent)
void
SubRoadNetwork.WrapSegment. getGeoLocationForDistance(double desired_distance, Point2D<?,?> geoLocation)
void
RoadPolyline. getGeoLocationForLocationRatio(double ratio, double shifting, Point2D<?,?> geoLocation)
void
RoadPolyline. getGeoLocationForLocationRatio(double ratio, double shifting, Point2D<?,?> output, Vector2D<?,?> tangent)
void
RoadPolyline. getGeoLocationForLocationRatio(double ratio, Point2D<?,?> geoLocation)
void
SubRoadNetwork.WrapSegment. getGeoLocationForLocationRatio(double ratio, double shifting, Point2D<?,?> geoLocation)
void
SubRoadNetwork.WrapSegment. getGeoLocationForLocationRatio(double ratio, double shifting, Point2D<?,?> geoLocation, Vector2D<?,?> tangent)
void
SubRoadNetwork.WrapSegment. getGeoLocationForLocationRatio(double ratio, Point2D<?,?> geoLocation)
RoadConnection
StandardRoadNetwork. getNearestConnection(Point2D<?,?> pos)
Point1d
StandardRoadNetwork. getNearestPosition(Point2D<?,?> pos)
Point1d
SubRoadNetwork.WrapSegment. getNearestPosition(Point2D<?,?> pos, double lateralDistance)
Point1d
StandardRoadNetwork. getNearestPositionOnRoadBorder(Point2D<?,?> pos)
RoadSegment
StandardRoadNetwork. getNearestSegment(Point2D<?,?> pos)
org.eclipse.xtext.xbase.lib.Pair<? extends RoadSegment,Double>
StandardRoadNetwork. getNearestSegmentData(Point2D<?,?> pos)
boolean
RoadConnectionWithArrivalSegment. isNearPoint(Point2D<?,?> point)
boolean
StandardRoadConnection. isNearPoint(Point2D<?,?> point)
void
RoadPolyline. projectsOnPlane(double positionOnSegment, double shiftDistance, Point2D<?,?> position, Vector2D<?,?> tangent)
void
RoadPolyline. projectsOnPlane(double positionOnSegment, Point2D<?,?> position, Vector2D<?,?> tangent)
void
SubRoadNetwork.WrapSegment. projectsOnPlane(double positionOnSegment, double shiftDistance, Point2D<?,?> position, Vector2D<?,?> tangent)
void
SubRoadNetwork.WrapSegment. projectsOnPlane(double positionOnSegment, Point2D<?,?> position, Vector2D<?,?> tangent)
(package private) void
StandardRoadConnection. setPosition(Point2D<?,?> position)
Set the temporary buffer of the position of the road connection. -
Uses of Point2D in org.arakhne.afc.gis.road.path.astar
Methods in org.arakhne.afc.gis.road.path.astar with parameters of type Point2D Modifier and Type Method Description int
RoadAStar.VirtualPoint. compareTo(Point2D<?,?> pts)
boolean
RoadAStar.VirtualSegment. contains(Point2D<?,?> point)
boolean
RoadAStar.VirtualSegment. contains(Point2D<?,?> point, double delta)
double
RoadAStar.VirtualSegment. distance(Point2D<?,?> point)
double
RoadAStar.VirtualSegment. distance(Point2D<?,?> point, double width)
double
RoadAStar.VirtualSegment. distanceToEnd(Point2D<?,?> point)
double
RoadAStar.VirtualSegment. distanceToEnd(Point2D<?,?> point, double width)
void
RoadAStar.VirtualSegment. getGeoLocationForDistance(double desiredDistance, double shifting, Point2D<?,?> geoLocation)
void
RoadAStar.VirtualSegment. getGeoLocationForDistance(double desiredDistance, double shifting, Point2D<?,?> geoLocation, Vector2D<?,?> tangent)
void
RoadAStar.VirtualSegment. getGeoLocationForDistance(double desiredDistance, Point2D<?,?> geoLocation)
void
RoadAStar.VirtualSegment. getGeoLocationForLocationRatio(double ratio, double shifting, Point2D<?,?> geoLocation)
void
RoadAStar.VirtualSegment. getGeoLocationForLocationRatio(double ratio, double shifting, Point2D<?,?> geoLocation, Vector2D<?,?> tangent)
void
RoadAStar.VirtualSegment. getGeoLocationForLocationRatio(double ratio, Point2D<?,?> geoLocation)
Point1d
RoadAStar.VirtualSegment. getNearestPosition(Point2D<?,?> pos, double lateralDistance)
boolean
RoadAStar.VirtualPoint. isNearPoint(Point2D<?,?> point)
void
RoadAStar.VirtualSegment. projectsOnPlane(double positionOnSegment, double shiftDistance, Point2D<?,?> position, Vector2D<?,?> tangent)
void
RoadAStar.VirtualSegment. projectsOnPlane(double positionOnSegment, Point2D<?,?> position, Vector2D<?,?> tangent)
RoadPath
RoadAStar. solve(RoadConnection startPoint, Point2D<?,?> endPoint, RoadNetwork network)
Run the A* algorithm from the nearest segment to startPoint to the nearest segment to endPoint.RoadPath
RoadAStar. solve(Point2D<?,?> startPoint, RoadConnection endPoint, RoadNetwork network)
Run the A* algorithm from the nearest segment to startPoint to the nearest segment to endPoint.RoadPath
RoadAStar. solve(Point2D<?,?> startPoint, Point2D<?,?> endPoint, RoadNetwork network)
Run the A* algorithm from the nearest segment to startPoint to the nearest segment to endPoint.Constructors in org.arakhne.afc.gis.road.path.astar with parameters of type Point2D Constructor Description VirtualPoint(Point2D<?,?> p2d, RoadSegment segment)
Constructor. -
Uses of Point2D in org.arakhne.afc.gis.road.primitive
Methods in org.arakhne.afc.gis.road.primitive with parameters of type Point2D Modifier and Type Method Description int
AbstractWrapRoadConnection. compareTo(Point2D<?,?> pts)
int
RoadConnection. compareTo(Point2D<?,?> pts)
Compares this object with the specified point for order.RoadConnection
RoadNetwork. connectSegmentEndPoint(RoadConnection connection, RoadSegment segment, Point2D<?,?> position)
Connection the end point of the given road segment to the given road connection or to a new connection.RoadConnection
RoadNetwork. connectSegmentStartPoint(RoadConnection connection, RoadSegment segment, Point2D<?,?> position)
Connection the start point of the given road segment to the given road connection or to a new connection.boolean
RoadSegment. contains(Point2D<?,?> point)
Replies if the specified point (x,y) was inside the figure of this MapElement.boolean
RoadSegment. contains(Point2D<?,?> point, double delta)
Replies if the specified point (x,y) was inside the figure of this MapElement.double
RoadSegment. distance(Point2D<?,?> point)
Replies the distance between this MapElement and point.double
RoadSegment. distance(Point2D<?,?> point, double width)
Replies the distance between this figure and the specified point.double
RoadSegment. distanceToEnd(Point2D<?,?> point)
Replies the distance between the nearest end of this MapElement and the point.double
RoadSegment. distanceToEnd(Point2D<?,?> point, double width)
Replies the distance between the nearest end of this MapElement and the point.void
RoadSegment. getGeoLocationForDistance(double desired_distance, double shifting, Point2D<?,?> geoLocation)
Replies the geo-location of the point described by the specified distance.void
RoadSegment. getGeoLocationForDistance(double desired_distance, double shifting, Point2D<?,?> geoLocation, Vector2D<?,?> tangent)
Replies the geo-location of the point described by the specified distance.void
RoadSegment. getGeoLocationForDistance(double desired_distance, Point2D<?,?> geoLocation)
Replies the geo-location of the point described by the specified distance.void
RoadSegment. getGeoLocationForLocationRatio(double ratio, double shifting, Point2D<?,?> geoLocation)
Replies the geo-location of the point described by the location ratio.void
RoadSegment. getGeoLocationForLocationRatio(double ratio, double shifting, Point2D<?,?> geoLocation, Vector2D<?,?> tangent)
Replies the geo-location of the point described by the location ratio.void
RoadSegment. getGeoLocationForLocationRatio(double ratio, Point2D<?,?> geoLocation)
Replies the geo-location of the point described by the location ratio.RoadConnection
RoadNetwork. getNearestConnection(Point2D<?,?> pos)
Return the nearest point from a position.Point1d
RoadNetwork. getNearestPosition(Point2D<?,?> pos)
Return the nearest point 1.5D from a 2D position.default Point1d
RoadSegment. getNearestPosition(Point2D<?,?> pos)
Return the nearest point 1.5D from a 2D position.Point1d
RoadSegment. getNearestPosition(Point2D<?,?> pos, double lateralDistance)
Return the nearest point 1.5D from a 2D position.default Point1d
RoadSegment. getNearestPositionOnBorder(Point2D<?,?> pos)
Return the nearest point 1.5D on the border of the road segment from a 2D position.Point1d
RoadNetwork. getNearestPositionOnRoadBorder(Point2D<?,?> pos)
Return the nearest point 1.5D on the road borders from a 2D position.RoadSegment
RoadNetwork. getNearestSegment(Point2D<?,?> pos)
Return the nearest segment from a position.org.eclipse.xtext.xbase.lib.Pair<? extends RoadSegment,Double>
RoadNetwork. getNearestSegmentData(Point2D<?,?> pos)
Return the nearest segment from a position; and its distance to the point.boolean
AbstractWrapRoadConnection. isNearPoint(Point2D<?,?> point)
boolean
RoadConnection. isNearPoint(Point2D<?,?> point)
Replies if the specified point is near this connection point. -
Uses of Point2D in org.arakhne.afc.gis.tree
Methods in org.arakhne.afc.gis.tree with parameters of type Point2D Modifier and Type Method Description boolean
AbstractGISTreeSetNode. contains(Point2D<?,?> point)
boolean
GISTreeNode. contains(Point2D<?,?> point)
Replies if the specified points is inside the bounds of the area covered by this node.P
MapElementTreeSet. getNearest(Point2D<?,?> position)
org.eclipse.xtext.xbase.lib.Pair<P,Double>
MapElementTreeSet. getNearestData(Point2D<?,?> position)
P
MapPolylineTreeSet. getNearestEnd(Point2D<?,?> position)
Replies the object that has the nearest end to the specified point. -
Uses of Point2D in org.arakhne.afc.math.extensions.scala
Methods in org.arakhne.afc.math.extensions.scala with type parameters of type Point2D Modifier and Type Method Description static <P extends Point2D<P,?>>
PTuple2DExtensions. $minus(double left, P right)
Subtract the scalar to this point:left - right
.static <P extends Point2D<P,?>>
PTuple2DExtensions. $plus(double left, P right)
Sum of this point and a scalar:left + right
. -
Uses of Point2D in org.arakhne.afc.math.extensions.xtext
Methods in org.arakhne.afc.math.extensions.xtext with type parameters of type Point2D Modifier and Type Method Description static <P extends Point2D<P,?>>
PTuple2DExtensions. operator_minus(double left, P right)
Subtract the scalar to this point:left - right
.static <P extends Point2D<P,?>>
PTuple2DExtensions. operator_plus(double left, P right)
Sum of this point and a scalar:left + right
. -
Uses of Point2D in org.arakhne.afc.math.geometry.coordinatesystem
Methods in org.arakhne.afc.math.geometry.coordinatesystem with parameters of type Point2D Modifier and Type Method Description void
CoordinateSystem2D. fromDefault(Point2D<?,?> point)
Convert the specified point from the default coordinate system.void
CoordinateSystem2D. toDefault(Point2D<?,?> point)
Convert the specified point into the default coordinate system.void
CoordinateSystem2D. toSystem(Point2D<?,?> point, CoordinateSystem2D targetCoordinateSystem)
Convert the specified point from the current coordinate system to the specified coordinate system. -
Uses of Point2D in org.arakhne.afc.math.geometry.d1
Classes in org.arakhne.afc.math.geometry.d1 with type parameters of type Point2D Modifier and Type Interface Description interface
Segment1D<RP extends Point2D<?,?>,RV extends Vector2D<?,?>>
This class represents a segment is a 1.5D coordinate space.Methods in org.arakhne.afc.math.geometry.d1 with parameters of type Point2D Modifier and Type Method Description default RV
Point1D. $minus(Point2D<?,?> pt)
Subtract the p point to this point:this - p
.default RV
Point1D. operator_minus(Point2D<?,?> pt)
Subtract the p point to this point:this - p
.void
Segment1D. projectsOnPlane(double positionOnSegment, double shiftDistance, Point2D<?,?> position, Vector2D<?,?> tangent)
Replies the 2D position and the 2D tangent at the position on the segment.void
Segment1D. projectsOnPlane(double positionOnSegment, Point2D<?,?> position, Vector2D<?,?> tangent)
Replies the 2D position and the 2D tangent at the position on the segment.Transform2D
Transform1D. toTransform2D(Point2D<?,?> startPoint, Point2D<?,?> endPoint)
Replies a 2D transformation that is corresponding to this transformation. -
Uses of Point2D in org.arakhne.afc.math.geometry.d1.afp
Methods in org.arakhne.afc.math.geometry.d1.afp with parameters of type Point2D Modifier and Type Method Description default void
RectangularShape1afp. set(Point2D<?,?> min, Point2D<?,?> max)
Change the frame of the rectangle.default void
RectangularShape1afp. setFromCenter(Point2D<?,?> center, Point2D<?,?> corner)
Sets the framing rectangle of thisShape
based on the specified center point coordinates and corner point coordinates.default void
RectangularShape1afp. setFromCorners(Point2D<?,?> p1, Point2D<?,?> p2)
Change the frame of the rectangle conserving previous min and max if needed. -
Uses of Point2D in org.arakhne.afc.math.geometry.d1.d
Methods in org.arakhne.afc.math.geometry.d1.d with parameters of type Point2D Modifier and Type Method Description void
DefaultSegment1d. projectsOnPlane(double positionOnSegment, double shiftDistance, Point2D<?,?> position, Vector2D<?,?> tangent)
void
DefaultSegment1d. projectsOnPlane(double positionOnSegment, Point2D<?,?> position, Vector2D<?,?> tangent)
-
Uses of Point2D in org.arakhne.afc.math.geometry.d2
Classes in org.arakhne.afc.math.geometry.d2 with type parameters of type Point2D Modifier and Type Class Description class
AbstractGeomFactory2D<V extends Vector2D<? super V,? super P>,P extends Point2D<? super P,? super V>>
Abstract implementation of a factory of geometric primitives.interface
GeomFactory2D<V extends Vector2D<? super V,? super P>,P extends Point2D<? super P,? super V>>
Factory of geometrical primitives.interface
MultiShape2D<ST extends Shape2D<?,?,I,P,V,B>,IT extends MultiShape2D<?,?,CT,I,P,V,B>,CT extends Shape2D<?,?,I,P,V,B>,I extends PathIterator2D<?>,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Shape2D<?,?,I,P,V,B>>
Container for grouping of shapes.interface
OrientedPoint2D<RP extends Point2D<? super RP,? super RV>,RV extends Vector2D<? super RV,? super RP>>
A 2D point with two orientation vectors relative to the polyline: the direction and the normal to the point.interface
Path2D<ST extends Shape2D<?,?,I,P,V,B>,IT extends Path2D<?,?,I,P,V,B>,I extends PathIterator2D<?>,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Shape2D<?,?,I,P,V,B>>
2D Path.interface
Point2D<RP extends Point2D<? super RP,? super RV>,RV extends Vector2D<? super RV,? super RP>>
2D Point.interface
Shape2D<ST extends Shape2D<?,?,I,P,V,B>,IT extends Shape2D<?,?,I,P,V,B>,I extends PathIterator2D<?>,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Shape2D<?,?,I,P,V,B>>
2D shape.interface
UnmodifiablePoint2D<RP extends Point2D<? super RP,? super RV>,RV extends Vector2D<? super RV,? super RP>>
Unmodifiable2D Point.interface
UnmodifiableVector2D<RV extends Vector2D<? super RV,? super RP>,RP extends Point2D<? super RP,? super RV>>
Unmodifiable 2D Vector.interface
Vector2D<RV extends Vector2D<? super RV,? super RP>,RP extends Point2D<? super RP,? super RV>>
2D Vector.Subinterfaces of Point2D in org.arakhne.afc.math.geometry.d2 Modifier and Type Interface Description interface
OrientedPoint2D<RP extends Point2D<? super RP,? super RV>,RV extends Vector2D<? super RV,? super RP>>
A 2D point with two orientation vectors relative to the polyline: the direction and the normal to the point.interface
UnmodifiablePoint2D<RP extends Point2D<? super RP,? super RV>,RV extends Vector2D<? super RV,? super RP>>
Unmodifiable2D Point.Classes in org.arakhne.afc.math.geometry.d2 that implement Point2D Modifier and Type Class Description class
ImmutablePoint2D
Immutable point 2D.Methods in org.arakhne.afc.math.geometry.d2 that return Point2D Modifier and Type Method Description default Point2D<? extends RP,? extends RV>
Point2D. operator_elvis(Point2D<? extends RP,? extends RV> pt)
If this point is epsilon equal to zero then reply p else reply this:this ?: p
.default P[]
Path2D. toPointArray()
Replies the points of this path in an array.P[]
Path2D. toPointArray(Transform2D transform)
Replies the points of this path in an array.Methods in org.arakhne.afc.math.geometry.d2 with parameters of type Point2D Modifier and Type Method Description default RV
Point2D. $minus(Point2D<?,?> pt)
Subtract the p point to this point:this - p
.default RP
Vector2D. $minus(Point2D<?,?> point)
Subtract a vector to this point:this - point
.default RP
Vector2D. $plus(Point2D<?,?> pt)
Add this vector to a point:this + p
.default void
Point2D. add(Point2D<?,?> point, Vector2D<?,?> vector)
Sets the value of this tuple to the sum of tuples t1 and t2.default void
Point2D. add(Vector2D<?,?> vector, Point2D<?,?> point)
Sets the value of this tuple to the sum of tuples t1 and t2.default void
UnmodifiablePoint2D. add(Point2D<?,?> point, Vector2D<?,?> vector)
default void
UnmodifiablePoint2D. add(Vector2D<?,?> vector, Point2D<?,?> point)
default void
Path2D. arcTo(Point2D<?,?> ctrl, Point2D<?,?> to)
Adds a section of an shallow ellipse to the current path.void
Path2D. arcTo(Point2D<?,?> ctrl, Point2D<?,?> to, double tfrom, double tto, Path2D.ArcType type)
Adds a section of an shallow ellipse to the current path.void
Path2D. arcTo(Point2D<?,?> to, Vector2D<?,?> radii, double xAxisRotation, boolean largeArcFlag, boolean sweepFlag)
Adds a section of an shallow ellipse to the current path.boolean
Shape2D. contains(Point2D<?,?> point)
Replies if the given point is inside this shape.boolean
Path2D. containsControlPoint(Point2D<?,?> point)
Replies if the given points exists in the coordinates of this path.P
GeomFactory2D. convertToPoint(Point2D<?,?> pt)
Convert the given point if it is not of the right type.ImmutablePoint2D
ImmutableGeomFactory. convertToPoint(Point2D<?,?> pt)
V
GeomFactory2D. convertToVector(Point2D<?,?> pt)
Convert the given point.ImmutableVector2D
ImmutableGeomFactory. convertToVector(Point2D<?,?> pt)
void
Path2D. curveTo(Point2D<?,?> ctrl1, Point2D<?,?> ctrl2, Point2D<?,?> to)
Adds a curved segment, defined by three new points, to the path by drawing a Bézier curve that intersects both the current coordinates and the specified coordinates(x3, y3)
, using the specified points(x1, y1)
and(x2, y2)
as Bézier control points.default P
MultiShape2D. getClosestPointTo(Point2D<?,?> point)
P
Shape2D. getClosestPointTo(Point2D<?,?> point)
Replies the point on the shape that is closest to the given point.default double
Point2D. getDistance(Point2D<?,?> point)
Computes the distance between this point and point p1.default double
Shape2D. getDistance(Point2D<?,?> point)
Replies the minimal distance from this shape to the given point.default double
MultiShape2D. getDistanceL1(Point2D<?,?> point)
default double
Point2D. getDistanceL1(Point2D<?,?> point)
Computes the L-1 (Manhattan) distance between this point and point p1.double
Shape2D. getDistanceL1(Point2D<?,?> point)
Computes the L-1 (Manhattan) distance between this shape and point p1.default double
MultiShape2D. getDistanceLinf(Point2D<?,?> point)
default double
Point2D. getDistanceLinf(Point2D<?,?> point)
Computes the L-infinite distance between this point and point p1.double
Shape2D. getDistanceLinf(Point2D<?,?> point)
Computes the L-infinite distance between this shape and point p1.default double
MultiShape2D. getDistanceSquared(Point2D<?,?> point)
default double
Point2D. getDistanceSquared(Point2D<?,?> point)
Computes the square of the distance between this point and point p1.double
Shape2D. getDistanceSquared(Point2D<?,?> point)
Replies the squared value of the minimal distance from this shape to the given point.default P
MultiShape2D. getFarthestPointTo(Point2D<?,?> point)
P
Shape2D. getFarthestPointTo(Point2D<?,?> point)
Replies the point on the shape that is farthest the given point.default CT
MultiShape2D. getFirstShapeContaining(Point2D<?,?> point)
Get the first shape in this multishape that is containing the given point.default int
Point2D. getIdistanceL1(Point2D<?,?> point)
Computes the L-1 (Manhattan) distance between this point and point p1.default int
Point2D. getIdistanceLinf(Point2D<?,?> point)
Computes the L-infinite distance between this point and point p1.default List<CT>
MultiShape2D. getShapesContaining(Point2D<?,?> point)
Get the shapes in this multishape that are containing the given point.void
Path2D. lineTo(Point2D<?,?> to)
Adds a point to the path by drawing a straight line from the current coordinates to the new specified coordinates specified in double precision.void
Path2D. moveTo(Point2D<?,?> position)
Adds a point to the path by moving to the specified coordinates specified in double precision.void
Path2D. moveToIfFar(Point2D<?,?> position)
Adds a point to the path by moving to the specified coordinates specified in double precision.default boolean
Shape2D. operator_and(Point2D<?,?> point)
Replies if the given point is inside the shape:this && b
default Point2D<? extends RP,? extends RV>
Point2D. operator_elvis(Point2D<? extends RP,? extends RV> pt)
If this point is epsilon equal to zero then reply p else reply this:this ?: p
.default RV
Point2D. operator_minus(Point2D<?,?> pt)
Subtract the p point to this point:this - p
.default RP
Vector2D. operator_minus(Point2D<?,?> point)
Subtract a vector to this point:this - point
.default RP
Vector2D. operator_plus(Point2D<?,?> pt)
Add this vector to a point:this + p
.default double
Point2D. operator_upTo(Point2D<?,?> pt)
Replies if the distance between this and the p point:this .. p
.default double
Shape2D. operator_upTo(Point2D<?,?> pt)
Replies the distance between the given point and this shape:this .. p
void
Path2D. quadTo(Point2D<?,?> ctrl, Point2D<?,?> to)
Adds a curved segment, defined by two new points, to the path by drawing a Quadratic curve that intersects both the current coordinates and the specified coordinates(x2, y2)
, using the specified point(x1, y1)
as a quadratic parametric control point.default void
Point2D. scaleAdd(double scale, Point2D<?,?> point, Vector2D<?,?> vector)
Sets the value of this tuple to the scalar multiplication of tuple t1 plus tuple t2 (this = s*point + vector).default void
Point2D. scaleAdd(double scale, Vector2D<?,?> vector, Point2D<?,?> point)
Sets the value of this tuple to the scalar multiplication of tuple t1 plus tuple t2 (this = s*vector + point).default void
Point2D. scaleAdd(int scale, Point2D<?,?> point, Vector2D<?,?> vector)
Sets the value of this tuple to the scalar multiplication of tuple t1 plus tuple t2 (this = s*point + vector).default void
Point2D. scaleAdd(int scale, Vector2D<?,?> vector, Point2D<?,?> point)
Sets the value of this tuple to the scalar multiplication of tuple t1 plus tuple t2 (this = s*vector + point).default void
UnmodifiablePoint2D. scaleAdd(double scale, Point2D<?,?> point, Vector2D<?,?> vector)
default void
UnmodifiablePoint2D. scaleAdd(double scale, Vector2D<?,?> vector, Point2D<?,?> point)
default void
UnmodifiablePoint2D. scaleAdd(int scale, Point2D<?,?> point, Vector2D<?,?> vector)
default void
UnmodifiablePoint2D. scaleAdd(int scale, Vector2D<?,?> vector, Point2D<?,?> point)
void
Path2D. setLastPoint(Point2D<?,?> point)
Change the coordinates of the last inserted point.default void
Point2D. sub(Point2D<?,?> point, Vector2D<?,?> vector)
Sets the value of this tuple to the difference of tuples point and vector (this = point - vector).default void
UnmodifiablePoint2D. sub(Point2D<?,?> point, Vector2D<?,?> vector)
default void
UnmodifiableVector2D. sub(Point2D<?,?> point1, Point2D<?,?> point2)
default void
Vector2D. sub(Point2D<?,?> point1, Point2D<?,?> point2)
Sets the value of this tuple to the difference of tuples point1 and point2 (this = point1 - point2).default void
Point2D. turn(double angle, Point2D<?,?> pointToTurn)
Turn the given point about the given rotation angle around the origin point, and set this point with the result.default void
Point2D. turn(double angle, Point2D<?,?> pointToTurn, Point2D<?,?> origin)
Turn the given point about the given rotation angle around the origin point, and set this point with the result.default void
UnmodifiablePoint2D. turn(double angle, Point2D<?,?> pointToTurn)
default void
UnmodifiablePoint2D. turn(double angle, Point2D<?,?> pointToTurn, Point2D<?,?> origin)
default void
Point2D. turnLeft(double angle, Point2D<?,?> pointToTurn)
Turn the given vector on the left, and set this vector with the result.default void
Point2D. turnLeft(double angle, Point2D<?,?> pointToTurn, Point2D<?,?> origin)
Turn the given vector on the left, and set this vector with the result.default void
UnmodifiablePoint2D. turnLeft(double angle, Point2D<?,?> pointToTurn)
default void
UnmodifiablePoint2D. turnLeft(double angle, Point2D<?,?> pointToTurn, Point2D<?,?> origin)
default void
Point2D. turnRight(double angle, Point2D<?,?> pointToTurn)
Turn this vector on the right around the origin when the given rotation angle is positive.default void
Point2D. turnRight(double angle, Point2D<?,?> pointToTurn, Point2D<?,?> origin)
Turn this vector on the right around the origin when the given rotation angle is positive.default void
UnmodifiablePoint2D. turnRight(double angle, Point2D<?,?> pointToTurn)
default void
UnmodifiablePoint2D. turnRight(double angle, Point2D<?,?> pointToTurn, Point2D<?,?> origin)
-
Uses of Point2D in org.arakhne.afc.math.geometry.d2.afp
Classes in org.arakhne.afc.math.geometry.d2.afp with type parameters of type Point2D Modifier and Type Interface Description interface
Circle2afp<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Circle2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>
Fonctional interface that represented a 2D circle on a plane.interface
Ellipse2afp<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Ellipse2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>
Fonctional interface that represented a 2D ellipse on a plane.interface
GeomFactory2afp<E extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,E,P,V,B>>
Factory of geometrical elements.interface
MultiShape2afp<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends MultiShape2afp<?,?,CT,IE,P,V,B>,CT extends Shape2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>
Container for grouping of shapes.interface
OrientedRectangle2afp<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends OrientedRectangle2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>
Fonctional interface that represented a 2D oriented rectangle on a plane.interface
Parallelogram2afp<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Parallelogram2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>
Fonctional interface that represented a 2D parallelogram on a plane.interface
Path2afp<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Path2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>
Fonctional interface that represented a 2D path on a plane.(package private) class
PointCollection<P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>>
An collection of the points of the path.interface
Rectangle2afp<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Rectangle2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>
Fonctional interface that represented a 2D rectangle on a plane.interface
RectangularShape2afp<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends RectangularShape2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>
Fonctional interface that represented a rectangular shape on a plane.interface
RoundRectangle2afp<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends RoundRectangle2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>
Fonctional interface that represented a 2D round rectangle on a plane.interface
Segment2afp<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Segment2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>
Fonctional interface that represented a 2D segment/line on a plane.interface
Shape2afp<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Shape2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>
2D shape with 2D floating coordinates.interface
Triangle2afp<ST extends Shape2afp<?,?,IE,P,V,B>,IT extends Triangle2afp<?,?,IE,P,V,B>,IE extends PathElement2afp,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2afp<?,?,IE,P,V,B>>
Fonctional interface that represented a 2D triangle on a plane.Classes in org.arakhne.afc.math.geometry.d2.afp that implement Point2D Modifier and Type Class Description class
InnerComputationPoint2afp
A point that is used for internal computations.Methods in org.arakhne.afc.math.geometry.d2.afp that return Point2D Modifier and Type Method Description Point2D<?,?>
ClosestPointPathShadow2afp. getClosestPointInOtherShape()
Replies the closest point on the shape that is compared to the shadow.Point2D<?,?>
ClosestPointPathShadow2afp. getClosestPointInShadowShape()
Replies the closest point on the shape that is compared to the shadow.Methods in org.arakhne.afc.math.geometry.d2.afp with parameters of type Point2D Modifier and Type Method Description default void
Rectangle2afp. add(Point2D<?,?> pt)
Add the given coordinate in the rectangle.default void
Path2afp. arcTo(Point2D<?,?> ctrl, Point2D<?,?> to, double tfrom, double tto, Path2D.ArcType type)
default void
Path2afp. arcTo(Point2D<?,?> to, Vector2D<?,?> radii, double xAxisRotation, boolean largeArcFlag, boolean sweepFlag)
static void
OrientedRectangle2afp. calculatesCenterPointAxisExtents(Iterable<? extends Point2D<?,?>> points, Vector2D<?,?> raxis, Point2D<?,?> center, Tuple2D<?> extents)
Compute the center point and axis extents of an oriented rectangle from a set of points and the oriented rectangle axes.static void
Parallelogram2afp. calculatesCenterPointAxisExtents(Iterable<? extends Point2D<?,?>> points, Vector2D<?,?> raxis, Vector2D<?,?> saxis, Point2D<?,?> center, Tuple2D<?> extents)
Compute the center point and axis extents of a parallelogram from a set of points and the parallelogram axes.default boolean
Shape2afp. contains(Point2D<?,?> pt)
InnerComputationPoint2afp
InnerComputationGeomFactory. convertToPoint(Point2D<?,?> pt)
InnerComputationVector2afp
InnerComputationGeomFactory. convertToVector(Point2D<?,?> pt)
default void
Path2afp. curveTo(Point2D<?,?> ctrl1, Point2D<?,?> ctrl2, Point2D<?,?> to)
static void
OrientedRectangle2afp. findsClosestFarthestPointsPointOrientedRectangle(double px, double py, double centerX, double centerY, double axis1X, double axis1Y, double axis1Extent, double axis2Extent, Point2D<?,?> closest, Point2D<?,?> farthest)
} Given a point p, this function computes the point q1 on (or in) this oriented rectangle, closest to p; and the point q2 on the oriented rectangle, farthest to p.static void
Triangle2afp. findsClosestFarthestPointsTrianglePoint(double tx1, double ty1, double tx2, double ty2, double tx3, double ty3, double px, double py, Point2D<?,?> closest, Point2D<?,?> farthest)
Replies the closest point to the given point inside the given triangle.static boolean
Path2afp. findsClosestPointPathIteratorPathIterator(PathIterator2afp<? extends PathElement2afp> pi, PathIterator2afp<? extends PathElement2afp> shape, Point2D<?,?> result)
Replies the point on the path of pi that is closest to the given shape.static void
Path2afp. findsClosestPointPathIteratorPoint(PathIterator2afp<? extends PathElement2afp> pi, double x, double y, Point2D<?,?> result)
Replies the point on the path that is closest to the given point.static void
Parallelogram2afp. findsClosestPointPointParallelogram(double px, double py, double centerX, double centerY, double axis1X, double axis1Y, double axis1Extent, double axis2X, double axis2Y, double axis2Extent, Point2D<?,?> closest)
Given a point p, this function computes the point q1 on (or in) this parallelogram, closest to p; and the point q2 on the parallelogram, farthest to p.static void
Segment2afp. findsClosestPointSegmentPoint(double ax, double ay, double bx, double by, double px, double py, Point2D<?,?> result)
Replies the point on the segment that is closest to the given point.static void
Segment2afp. findsClosestPointSegmentRectangle(double sx1, double sy1, double sx2, double sy2, double rx, double ry, double rwidth, double rheight, Point2D<?,?> result)
Replies the point on the segment that is closest to the rectangle.static double
Segment2afp. findsClosestPointSegmentSegment(double s1x1, double s1y1, double s1x2, double s1y2, double s2x1, double s2y1, double s2x2, double s2y2, Point2D<?,?> result)
Replies the point on the first segment that is closest to the second segment.static double
Segment2afp. findsClosestPointSegmentSegment(double s1x1, double s1y1, double s1x2, double s1y2, double s2x1, double s2y1, double s2x2, double s2y2, Point2D<?,?> resultOnFirstSegment, Point2D<?,?> resultOnSecondSegment)
Replies the point on the first segment that is closest to the second segment.static void
Ellipse2afp. findsClosestPointShallowEllipsePoint(double px, double py, double ex, double ey, double ew, double eh, Point2D<?,?> result)
Replies the closest point from the given point in the shallow ellipse.static void
Ellipse2afp. findsClosestPointSolidEllipsePoint(double px, double py, double ex, double ey, double ew, double eh, Point2D<?,?> result)
Replies the closest point from the given point in the solid ellipse.static void
Path2afp. findsFarthestPointPathIteratorPoint(PathIterator2afp<? extends PathElement2afp> pi, double x, double y, Point2D<?,?> result)
Replies the point on the path that is farthest to the given point.static void
Parallelogram2afp. findsFarthestPointPointParallelogram(double px, double py, double centerX, double centerY, double axis1X, double axis1Y, double axis1Extent, double axis2X, double axis2Y, double axis2Extent, Point2D<?,?> farthest)
Given a point p, this function computes the point q2 on the parallelogram, farthest to p.static void
Segment2afp. findsFarthestPointSegmentPoint(double ax, double ay, double bx, double by, double px, double py, Point2D<?,?> result)
Replies the point on the segment that is farthest to the given point.static void
Segment2afp. findsFarthestPointSegmentRectangle(double sx1, double sy1, double sx2, double sy2, double rx, double ry, double rwidth, double rheight, Point2D<?,?> result)
Replies the point on the segment that is farthest to the rectangle.static double
Segment2afp. findsFarthestPointSegmentSegment(double s1x1, double s1y1, double s1x2, double s1y2, double s2x1, double s2y1, double s2x2, double s2y2, Point2D<?,?> result)
Replies the point on the first segment that is farthest to the second segment.static void
Ellipse2afp. findsFarthestPointShallowEllipsePoint(double px, double py, double ex, double ey, double ew, double eh, Point2D<?,?> result)
Replies the farthest point from the given point in the shallow ellipse.static boolean
Segment2afp. findsLineLineIntersection(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, Point2D<?,?> result)
Compute the intersection of two lines specified by the specified points and vectors.static boolean
Segment2afp. findsSegmentSegmentIntersection(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, Point2D<?,?> result)
Replies the intersection point between two segments.default P
Circle2afp. getClosestPointTo(Point2D<?,?> pt)
default P
Ellipse2afp. getClosestPointTo(Point2D<?,?> pt)
default P
OrientedRectangle2afp. getClosestPointTo(Point2D<?,?> pt)
default P
Parallelogram2afp. getClosestPointTo(Point2D<?,?> pt)
default P
Path2afp. getClosestPointTo(Point2D<?,?> pt)
default P
Rectangle2afp. getClosestPointTo(Point2D<?,?> pt)
default P
RoundRectangle2afp. getClosestPointTo(Point2D<?,?> pt)
default P
Segment2afp. getClosestPointTo(Point2D<?,?> pt)
default P
Triangle2afp. getClosestPointTo(Point2D<?,?> pt)
default double
Circle2afp. getDistance(Point2D<?,?> pt)
default double
Circle2afp. getDistanceL1(Point2D<?,?> pt)
default double
Ellipse2afp. getDistanceL1(Point2D<?,?> pt)
default double
OrientedRectangle2afp. getDistanceL1(Point2D<?,?> pt)
default double
Parallelogram2afp. getDistanceL1(Point2D<?,?> pt)
default double
Path2afp. getDistanceL1(Point2D<?,?> pt)
default double
Rectangle2afp. getDistanceL1(Point2D<?,?> pt)
default double
RoundRectangle2afp. getDistanceL1(Point2D<?,?> pt)
default double
Segment2afp. getDistanceL1(Point2D<?,?> pt)
default double
Triangle2afp. getDistanceL1(Point2D<?,?> pt)
default double
Circle2afp. getDistanceLinf(Point2D<?,?> pt)
default double
Ellipse2afp. getDistanceLinf(Point2D<?,?> pt)
default double
OrientedRectangle2afp. getDistanceLinf(Point2D<?,?> pt)
default double
Parallelogram2afp. getDistanceLinf(Point2D<?,?> pt)
default double
Path2afp. getDistanceLinf(Point2D<?,?> pt)
default double
Rectangle2afp. getDistanceLinf(Point2D<?,?> pt)
default double
RoundRectangle2afp. getDistanceLinf(Point2D<?,?> pt)
default double
Segment2afp. getDistanceLinf(Point2D<?,?> pt)
default double
Triangle2afp. getDistanceLinf(Point2D<?,?> pt)
default double
Circle2afp. getDistanceSquared(Point2D<?,?> pt)
default double
Ellipse2afp. getDistanceSquared(Point2D<?,?> pt)
default double
OrientedRectangle2afp. getDistanceSquared(Point2D<?,?> pt)
default double
Parallelogram2afp. getDistanceSquared(Point2D<?,?> pt)
default double
Path2afp. getDistanceSquared(Point2D<?,?> pt)
default double
Rectangle2afp. getDistanceSquared(Point2D<?,?> pt)
default double
RoundRectangle2afp. getDistanceSquared(Point2D<?,?> pt)
default double
Segment2afp. getDistanceSquared(Point2D<?,?> pt)
default double
Triangle2afp. getDistanceSquared(Point2D<?,?> pt)
default P
Circle2afp. getFarthestPointTo(Point2D<?,?> pt)
default P
Ellipse2afp. getFarthestPointTo(Point2D<?,?> pt)
default P
OrientedRectangle2afp. getFarthestPointTo(Point2D<?,?> pt)
default P
Parallelogram2afp. getFarthestPointTo(Point2D<?,?> pt)
default P
Path2afp. getFarthestPointTo(Point2D<?,?> pt)
default P
Rectangle2afp. getFarthestPointTo(Point2D<?,?> pt)
default P
RoundRectangle2afp. getFarthestPointTo(Point2D<?,?> pt)
default P
Segment2afp. getFarthestPointTo(Point2D<?,?> pt)
default P
Triangle2afp. getFarthestPointTo(Point2D<?,?> pt)
static void
Segment2afp. interpolates(double p1x, double p1y, double p2x, double p2y, double factor, Point2D<?,?> result)
Compute the interpolate point between the two points.default void
Path2afp. lineTo(Point2D<?,?> to)
default void
Path2afp. moveTo(Point2D<?,?> position)
default void
Path2afp. moveToIfFar(Point2D<?,?> position)
default void
Path2afp. quadTo(Point2D<?,?> ctrl, Point2D<?,?> to)
default void
Circle2afp. set(Point2D<?,?> center, double radius)
Change the frame of the circle.default void
OrientedRectangle2afp. set(Point2D<?,?> center, Vector2D<?,?> axis1, double axis1Extent, double axis2Extent)
Set the oriented rectangle.default void
Parallelogram2afp. set(Point2D<?,?> center, Vector2D<?,?> axis1, double axis1Extent, Vector2D<?,?> axis2, double axis2Extent)
Set the parallelogram.default void
RectangularShape2afp. set(Point2D<?,?> min, Point2D<?,?> max)
Change the frame of the rectangle.default void
Segment2afp. set(Point2D<?,?> firstPoint, Point2D<?,?> secondPoint)
Change the line.default void
Circle2afp. setCenter(Point2D<?,?> center)
Change the center.default void
Parallelogram2afp. setCenter(Point2D<?,?> center)
Set the center.default void
RectangularShape2afp. setFromCenter(Point2D<?,?> center, Point2D<?,?> corner)
Sets the framing rectangle of thisShape
based on the specified center point coordinates and corner point coordinates.default void
RectangularShape2afp. setFromCorners(Point2D<?,?> p1, Point2D<?,?> p2)
Change the frame of the rectangle conserving previous min and max if needed.default void
Parallelogram2afp. setFromPointCloud(Point2D<?,?>... pointCloud)
Set the oriented rectangle from a could of points.default void
Path2afp. setLastPoint(Point2D<?,?> point)
default void
Segment2afp. setP1(Point2D<?,?> pt)
Change the first point.default void
Triangle2afp. setP1(Point2D<?,?> point)
Change the first point.default void
Segment2afp. setP2(Point2D<?,?> pt)
Change the second point.default void
Triangle2afp. setP2(Point2D<?,?> point)
Change the second point.default void
Triangle2afp. setP3(Point2D<?,?> point)
Change the third point.Method parameters in org.arakhne.afc.math.geometry.d2.afp with type arguments of type Point2D Modifier and Type Method Description static void
OrientedRectangle2afp. calculatesCenterPointAxisExtents(Iterable<? extends Point2D<?,?>> points, Vector2D<?,?> raxis, Point2D<?,?> center, Tuple2D<?> extents)
Compute the center point and axis extents of an oriented rectangle from a set of points and the oriented rectangle axes.static void
Parallelogram2afp. calculatesCenterPointAxisExtents(Iterable<? extends Point2D<?,?>> points, Vector2D<?,?> raxis, Vector2D<?,?> saxis, Point2D<?,?> center, Tuple2D<?> extents)
Compute the center point and axis extents of a parallelogram from a set of points and the parallelogram axes.static void
Parallelogram2afp. calculatesOrthogonalAxes(Iterable<? extends Point2D<?,?>> points, Vector2D<?,?> raxis, Vector2D<?,?> saxis)
Compute the axes of an oriented bounding rectangle that is enclosing the set of points.default void
OrientedRectangle2afp. setFromPointCloud(Iterable<? extends Point2D<?,?>> pointCloud)
default void
Parallelogram2afp. setFromPointCloud(Iterable<? extends Point2D<?,?>> pointCloud)
Set the parallelogram from a could of points.default void
Rectangle2afp. setFromPointCloud(Iterable<? extends Point2D<?,?>> pointCloud)
-
Uses of Point2D in org.arakhne.afc.math.geometry.d2.ai
Classes in org.arakhne.afc.math.geometry.d2.ai with type parameters of type Point2D Modifier and Type Interface Description interface
Circle2ai<ST extends Shape2ai<?,?,IE,P,V,B>,IT extends Circle2ai<?,?,IE,P,V,B>,IE extends PathElement2ai,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2ai<?,?,IE,P,V,B>>
Fonctional interface that represented a 2D circle on a plane.static class
Circle2ai.CirclePerimeterIterator<P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>>
Iterates on points on the perimeter of a circle.interface
GeomFactory2ai<E extends PathElement2ai,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2ai<?,?,E,P,V,B>>
Factory of geometrical elements.interface
MultiShape2ai<ST extends Shape2ai<?,?,IE,P,V,B>,IT extends MultiShape2ai<?,?,CT,IE,P,V,B>,CT extends Shape2ai<?,?,IE,P,V,B>,IE extends PathElement2ai,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2ai<?,?,IE,P,V,B>>
Container for grouping of shapes.static class
MultiShape2ai.MultiShapePointIterator<P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>>
Iterator on the points of the multishape.interface
Path2ai<ST extends Shape2ai<?,?,IE,P,V,B>,IT extends Path2ai<?,?,IE,P,V,B>,IE extends PathElement2ai,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2ai<?,?,IE,P,V,B>>
Fonctional interface that represented a 2D path on a plane.static class
Path2ai.PixelIterator<P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>>
Iterator on the pixels of the path.(package private) class
PointCollection<P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>>
An collection of the points of the path.interface
Rectangle2ai<ST extends Shape2ai<?,?,IE,P,V,B>,IT extends Rectangle2ai<?,?,IE,P,V,B>,IE extends PathElement2ai,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2ai<?,?,IE,P,V,B>>
Fonctional interface that represented a 2D rectangle on a plane.static class
Rectangle2ai.RectangleSideIterator<P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>>
Iterates on points on the sides of a rectangle.interface
RectangularShape2ai<ST extends Shape2ai<?,?,IE,P,V,B>,IT extends RectangularShape2ai<?,?,IE,P,V,B>,IE extends PathElement2ai,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2ai<?,?,IE,P,V,B>>
Fonctional interface that represented a rectangular shape on a plane.interface
Segment2ai<ST extends Shape2ai<?,?,IE,P,V,B>,IT extends Segment2ai<?,?,IE,P,V,B>,IE extends PathElement2ai,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2ai<?,?,IE,P,V,B>>
Fonctional interface that represented a 2D segment/line on a plane.static class
Segment2ai.BresenhamLineIterator<P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>>
The Bresenham line algorithm is an algorithm which determines which points in an n-dimensional raster should be plotted in order to form a close approximation to a straight line between two given points.interface
Shape2ai<ST extends Shape2ai<?,?,IE,P,V,B>,IT extends Shape2ai<?,?,IE,P,V,B>,IE extends PathElement2ai,P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>,B extends Rectangle2ai<?,?,IE,P,V,B>>
2D shape with 2d floating coordinates.Classes in org.arakhne.afc.math.geometry.d2.ai that implement Point2D Modifier and Type Class Description class
InnerComputationPoint2ai
A point that is used for internal computations.Methods in org.arakhne.afc.math.geometry.d2.ai with type parameters of type Point2D Modifier and Type Method Description static <P extends Point2D<? super P,? super V>,V extends Vector2D<? super V,? super P>>
Iterator<P>Circle2ai. newPointIterator(int cx, int cy, int radius, int firstOctantIndex, int nbOctants, GeomFactory2ai<?,P,V,?> factory)
Replies the points of the circle perimeters starting by the first octant.Methods in org.arakhne.afc.math.geometry.d2.ai that return Point2D Modifier and Type Method Description Point2D<?,?>
ClosestPointPathShadow2ai. getClosestPointInOtherShape()
Replies the closest point on the shape that is compared to the shadow.Point2D<?,?>
ClosestPointPathShadow2ai. getClosestPointInShadowShape()
Replies the closest point on the shape that is compared to the shadow.Methods in org.arakhne.afc.math.geometry.d2.ai with parameters of type Point2D Modifier and Type Method Description default void
Path2ai. arcTo(Point2D<?,?> ctrl, Point2D<?,?> to, double tfrom, double tto, Path2D.ArcType type)
default void
Path2ai. arcTo(Point2D<?,?> to, Vector2D<?,?> radii, double xAxisRotation, boolean largeArcFlag, boolean sweepFlag)
default boolean
Shape2ai. contains(Point2D<?,?> pt)
InnerComputationPoint2ai
InnerComputationGeomFactory. convertToPoint(Point2D<?,?> pt)
InnerComputationVector2ai
InnerComputationGeomFactory. convertToVector(Point2D<?,?> pt)
default void
Path2ai. curveTo(Point2D<?,?> ctrl1, Point2D<?,?> ctrl2, Point2D<?,?> to)
static void
Circle2ai. findsClosestPointCirclePoint(int cx, int cy, int cr, int x, int y, Point2D<?,?> result)
Replies the closest point in a circle to a point.static boolean
Path2ai. findsClosestPointPathIteratorPathIterator(PathIterator2ai<? extends PathElement2ai> pi, PathIterator2ai<? extends PathElement2ai> shape, Point2D<?,?> result)
Replies the point on the path of pi that is closest to the given shape.static void
Path2ai. findsClosestPointPathIteratorPoint(PathIterator2ai<? extends PathElement2ai> pi, int x, int y, Point2D<?,?> result)
Replies the point on the path that is closest to the given point.static void
Rectangle2ai. findsClosestPointRectanglePoint(int minx, int miny, int maxx, int maxy, int px, int py, Point2D<?,?> result)
Compute the closest point on the rectangle from the given point.static void
Rectangle2ai. findsClosestPointRectangleRectangle(int rx1, int ry1, int rmaxx1, int rmaxy1, int rx2, int ry2, int rmaxx2, int rmaxy2, Point2D<?,?> closest)
Compute the point on the first rectangle that is the closest to the second rectangle.static void
Rectangle2ai. findsClosestPointRectangleSegment(int rx, int ry, int rmaxx, int rmaxy, int sx1, int sy1, int sx2, int sy2, Point2D<?,?> closest)
Compute the point on the rectangle that is the closest to the segment.static void
Segment2ai. findsClosestPointSegmentPoint(int ax, int ay, int bx, int by, int px, int py, Point2D<?,?> result)
Replies the closest point in a circle to a point.static double
Segment2ai. findsClosestPointSegmentRectangle(int sx1, int sy1, int sx2, int sy2, int rx, int ry, int rwidth, int rheight, Point2D<?,?> result)
Replies the point on the segment that is closest to the rectangle.static double
Segment2ai. findsClosestPointSegmentSegment(int s1x1, int s1y1, int s1x2, int s1y2, int s2x1, int s2y1, int s2x2, int s2y2, Point2D<?,?> result)
Replies the point on the first segment that is closest to the second segment.static double
Segment2ai. findsClosestPointsSegmentSegment(int s1x1, int s1y1, int s1x2, int s1y2, int s2x1, int s2y1, int s2x2, int s2y2, Point2D<?,?> resultOnFirstSegment, Point2D<?,?> resultOnSecondSegment)
Replies the point on the first segment that is closest to the second segment.static void
Circle2ai. findsFarthestPointCirclePoint(int cx, int cy, int cr, int x, int y, Point2D<?,?> result)
Replies the farthest point in a circle to a point.static void
Path2ai. findsFarthestPointPathIteratorPoint(PathIterator2ai<? extends PathElement2ai> pi, int x, int y, Point2D<?,?> result)
Replies the point on the path that is farthest to the given point.static void
Rectangle2ai. findsFarthestPointRectanglePoint(int minx, int miny, int maxx, int maxy, int px, int py, Point2D<?,?> result)
Compute the farthest point on the rectangle from the given point.static void
Segment2ai. findsFarthestPointSegmentPoint(int ax, int ay, int bx, int by, int px, int py, Point2D<?,?> result)
Replies the farthest point on a segment to a point.static int
Segment2ai. findsIntersectionTypeSegmentSegment(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, boolean enableThirdPoint, boolean enableFourthPoint, Point2D<?,?> intersectionPoint)
Replies if two segments are intersecting pixel per pixel.default P
Circle2ai. getClosestPointTo(Point2D<?,?> pt)
default P
Path2ai. getClosestPointTo(Point2D<?,?> pt)
default P
Rectangle2ai. getClosestPointTo(Point2D<?,?> pt)
default P
Segment2ai. getClosestPointTo(Point2D<?,?> pt)
default double
Circle2ai. getDistanceL1(Point2D<?,?> pt)
default double
Path2ai. getDistanceL1(Point2D<?,?> pt)
default double
Rectangle2ai. getDistanceL1(Point2D<?,?> pt)
default double
Segment2ai. getDistanceL1(Point2D<?,?> pt)
default double
Circle2ai. getDistanceLinf(Point2D<?,?> pt)
default double
Path2ai. getDistanceLinf(Point2D<?,?> pt)
default double
Rectangle2ai. getDistanceLinf(Point2D<?,?> pt)
default double
Segment2ai. getDistanceLinf(Point2D<?,?> pt)
default double
Circle2ai. getDistanceSquared(Point2D<?,?> pt)
default double
Path2ai. getDistanceSquared(Point2D<?,?> pt)
default double
Rectangle2ai. getDistanceSquared(Point2D<?,?> pt)
default double
Segment2ai. getDistanceSquared(Point2D<?,?> pt)
default P
Circle2ai. getFarthestPointTo(Point2D<?,?> pt)
default P
Path2ai. getFarthestPointTo(Point2D<?,?> pt)
default P
Rectangle2ai. getFarthestPointTo(Point2D<?,?> pt)
default P
Segment2ai. getFarthestPointTo(Point2D<?,?> pt)
static boolean
Segment2ai. intersectsSegmentSegment(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4, boolean enableThirdPoint, boolean enableFourthPoint, Point2D<?,?> intersectionPoint)
Replies if two segments are intersecting pixel per pixel.default void
Path2ai. lineTo(Point2D<?,?> to)
default void
Path2ai. moveTo(Point2D<?,?> position)
default void
Path2ai. moveToIfFar(Point2D<?,?> position)
void
Segment2ai.BresenhamLineIterator. next(Point2D<?,?> pt)
Replies the next point in the given parameter.default void
Path2ai. quadTo(Point2D<?,?> ctrl, Point2D<?,?> to)
static int
Rectangle2ai. reducesCohenSutherlandZoneRectangleSegment(int rx1, int ry1, int rx2, int ry2, int sx1, int sy1, int sx2, int sy2, int codePoint1, int codePoint2, Point2D<?,?> newSegmentP1, Point2D<?,?> newSegmentP2)
Update the given Cohen-Sutherland code that corresponds to the given segment in order to obtain a segment restricted to a single Cohen-Sutherland zone.default void
Circle2ai. set(Point2D<?,?> center, int radius)
Change the circle.default void
RectangularShape2ai. set(Point2D<?,?> min, Point2D<?,?> max)
Change the frame of the rectangle.default void
Segment2ai. set(Point2D<?,?> firstPoint, Point2D<?,?> secondPoint)
Change the line.default void
Circle2ai. setCenter(Point2D<?,?> center)
Change the circle's center.default void
RectangularShape2ai. setFromCenter(Point2D<?,?> center, Point2D<?,?> corner)
Sets the framing rectangle of thisShape
based on the specified center point coordinates and corner point coordinates.default void
RectangularShape2ai. setFromCorners(Point2D<?,?> p1, Point2D<?,?> p2)
Change the frame of the rectangle conserving previous min and max if needed.default void
Path2ai. setLastPoint(Point2D<?,?> point)
default void
Segment2ai. setP1(Point2D<?,?> point)
Change the first point.default void
Segment2ai. setP2(Point2D<?,?> point)
Change the second point. -
Uses of Point2D in org.arakhne.afc.math.geometry.d2.d
Classes in org.arakhne.afc.math.geometry.d2.d that implement Point2D Modifier and Type Class Description class
OrientedPoint2d
2D oriented point with double precision floating-point numbers.class
Point2d
2D Point with 2 double precision floating-point numbers.Methods in org.arakhne.afc.math.geometry.d2.d with parameters of type Point2D Modifier and Type Method Description void
Point2d. add(Point2D<?,?> point, Vector2D<?,?> vector)
void
Point2d. add(Vector2D<?,?> vector, Point2D<?,?> point)
boolean
Path2d. containsControlPoint(Point2D<?,?> pt)
Point2d
GeomFactory2d. convertToPoint(Point2D<?,?> pt)
Vector2d
GeomFactory2d. convertToVector(Point2D<?,?> pt)
double
Point2d. getDistance(Point2D<?,?> pt)
double
Point2d. getDistanceL1(Point2D<?,?> pt)
double
Point2d. getDistanceLinf(Point2D<?,?> pt)
double
Point2d. getDistanceSquared(Point2D<?,?> pt)
int
Point2d. getIdistanceL1(Point2D<?,?> pt)
int
Point2d. getIdistanceLinf(Point2D<?,?> pt)
void
Point2d. scaleAdd(double scale, Point2D<?,?> point, Vector2D<?,?> vector)
void
Point2d. scaleAdd(double scale, Vector2D<?,?> vector, Point2D<?,?> point)
void
Point2d. scaleAdd(int scale, Point2D<?,?> point, Vector2D<?,?> vector)
void
Point2d. scaleAdd(int scale, Vector2D<?,?> vector, Point2D<?,?> point)
void
Point2d. sub(Point2D<?,?> point, Vector2D<?,?> vector)
void
Vector2d. sub(Point2D<?,?> point1, Point2D<?,?> point2)
Constructors in org.arakhne.afc.math.geometry.d2.d with parameters of type Point2D Constructor Description Circle2d(Point2D<?,?> center, double radius)
Construct a circle at the given position, and with the given radius.Ellipse2d(Point2D<?,?> min, Point2D<?,?> max)
Construct an ellipse with the given corners of its bouding box.OrientedPoint2d(Point2D<?,?> point, Vector2D<?,?> vector)
Construct an oriented point from a point and a tangent vector.OrientedRectangle2d(Point2D<?,?>... pointCloud)
Construct an oriented rectangle from the given cloud of points.OrientedRectangle2d(Point2D<?,?> center, Vector2D<?,?> axis1, double axis1Extent, double axis2Extent)
Construct an oriented rectangle.Parallelogram2d(Point2D<?,?>... pointCloud)
Construct a parallelogram from the given cloud of points.Parallelogram2d(Point2D<?,?> center, Vector2D<?,?> axis1, double axis1Extent, Vector2D<?,?> axis2, double axis2Extent)
Construct a parallelogram.Rectangle2d(Point2D<?,?> min, Point2D<?,?> max)
Construct a rectangle with the given minimum and maxium corners.RoundRectangle2d(Point2D<?,?> min, Point2D<?,?> max, double arcWidth, double arcHeight)
Construct a round rectangle with the given corners and arcs.Segment2d(Point2D<?,?> p1, Point2D<?,?> p2)
Construct a segment from the two given points.SegmentPoint2d(Point2D<?,?> p1, Point2D<?,?> p2)
Construct a segment from the two given points.Triangle2d(Point2D<?,?> p1, Point2D<?,?> p2, Point2D<?,?> p3)
Construct a triangle with the given 3 points.Constructor parameters in org.arakhne.afc.math.geometry.d2.d with type arguments of type Point2D Constructor Description OrientedRectangle2d(Iterable<? extends Point2D<?,?>> pointCloud)
Construct an oriented rectangle from the given cloud of points.Parallelogram2d(Iterable<? extends Point2D<?,?>> pointCloud)
Construct a parallelogram from the given cloud of points. -
Uses of Point2D in org.arakhne.afc.math.geometry.d2.dfx
Classes in org.arakhne.afc.math.geometry.d2.dfx that implement Point2D Modifier and Type Class Description class
OrientedPoint2dfx
2D oriented point with double precison floating point FX properties.class
Point2dfx
2D Point with 2 double precision floating-point FX properties.Methods in org.arakhne.afc.math.geometry.d2.dfx with parameters of type Point2D Modifier and Type Method Description boolean
Path2dfx. containsControlPoint(Point2D<?,?> pt)
Point2dfx
GeomFactory2dfx. convertToPoint(Point2D<?,?> pt)
Vector2dfx
GeomFactory2dfx. convertToVector(Point2D<?,?> pt)
void
Path2dfx. curveTo(Point2D<?,?> ctrl1, Point2D<?,?> ctrl2, Point2D<?,?> to)
void
Path2dfx. lineTo(Point2D<?,?> to)
void
Path2dfx. moveTo(Point2D<?,?> position)
void
Path2dfx. quadTo(Point2D<?,?> ctrl, Point2D<?,?> to)
boolean
Path2dfx. remove(Point2D<?,?> point)
Remove the point from this path.void
Path2dfx. setLastPoint(Point2D<?,?> point)
void
Segment2dfx. setP1(Point2D<?,?> pt)
void
Segment2dfx. setP2(Point2D<?,?> pt)
Constructors in org.arakhne.afc.math.geometry.d2.dfx with parameters of type Point2D Constructor Description Circle2dfx(Point2D<?,?> center, double radius)
Construct a circle with the given position and radius.Ellipse2dfx(Point2D<?,?> min, Point2D<?,?> max)
Construct an ellipse with the given minimum and maximum corners for its bounding box.OrientedPoint2dfx(Point2D<?,?> point, Vector2D<?,?> tangent)
Construct an oriented point from a point and a tangent vector.OrientedRectangle2dfx(Point2D<?,?>... pointCloud)
Construct an oriented rectangle from the given cloud of points.OrientedRectangle2dfx(Point2D<?,?> center, Vector2D<?,?> axis1, double axis1Extent, double axis2Extent)
Construct an oriented rectangle.Parallelogram2dfx(Point2D<?,?>... pointCloud)
Construct a parallelogram from the given cloud of points.Parallelogram2dfx(Point2D<?,?> center, Vector2D<?,?> axis1, double axis1Extent, Vector2D<?,?> axis2, double axis2Extent)
Construct a parallelogram.Rectangle2dfx(Point2D<?,?> min, Point2D<?,?> max)
Construct a rectangle with the given minimum and maximum corners.RoundRectangle2dfx(Point2D<?,?> min, Point2D<?,?> max, double arcWidth, double arcHeight)
Constructor.Segment2dfx(Point2D<?,?> p1, Point2D<?,?> p2)
Construct a segment with the two given points.Triangle2dfx(Point2D<?,?> p1, Point2D<?,?> p2, Point2D<?,?> p3)
Construct a triangle with the three given points.Constructor parameters in org.arakhne.afc.math.geometry.d2.dfx with type arguments of type Point2D Constructor Description OrientedRectangle2dfx(Iterable<? extends Point2D<?,?>> pointCloud)
Construct an oriented rectangle from the given cloud of points.Parallelogram2dfx(Iterable<? extends Point2D<?,?>> pointCloud)
Construct a parallelogram from the given cloud of points. -
Uses of Point2D in org.arakhne.afc.math.geometry.d2.i
Classes in org.arakhne.afc.math.geometry.d2.i that implement Point2D Modifier and Type Class Description class
OrientedPoint2i
2D oriented point with int precision floating-point numbers.class
Point2i
2D Point with 2 integer numbers.Methods in org.arakhne.afc.math.geometry.d2.i with parameters of type Point2D Modifier and Type Method Description void
Point2i. add(Point2D<?,?> point, Vector2D<?,?> vector)
void
Point2i. add(Vector2D<?,?> vector, Point2D<?,?> point)
boolean
Path2i. containsControlPoint(Point2D<?,?> pt)
Point2i
GeomFactory2i. convertToPoint(Point2D<?,?> point)
Vector2i
GeomFactory2i. convertToVector(Point2D<?,?> point)
double
Point2i. getDistance(Point2D<?,?> point)
double
Point2i. getDistanceL1(Point2D<?,?> point)
double
Point2i. getDistanceLinf(Point2D<?,?> point)
double
Point2i. getDistanceSquared(Point2D<?,?> point)
int
Point2i. getIdistanceL1(Point2D<?,?> point)
int
Point2i. getIdistanceLinf(Point2D<?,?> point)
void
Point2i. scaleAdd(double scale, Point2D<?,?> point, Vector2D<?,?> vector)
void
Point2i. scaleAdd(double scale, Vector2D<?,?> vector, Point2D<?,?> point)
void
Point2i. scaleAdd(int scale, Point2D<?,?> point, Vector2D<?,?> vector)
void
Point2i. scaleAdd(int scale, Vector2D<?,?> vector, Point2D<?,?> point)
void
Point2i. sub(Point2D<?,?> point, Vector2D<?,?> vector)
void
Vector2i. sub(Point2D<?,?> point1, Point2D<?,?> point2)
Constructors in org.arakhne.afc.math.geometry.d2.i with parameters of type Point2D Constructor Description Circle2i(Point2D<?,?> center, int radius)
Construct a circle at the given position and with the given radius.OrientedPoint2i(Point2D<?,?> point, Vector2D<?,?> vector)
Construct an oriented point from a point and a tangent vector.Rectangle2i(Point2D<?,?> min, Point2D<?,?> max)
Construct a rectangle with the given minimum and maximum corners.Segment2i(Point2D<?,?> p1, Point2D<?,?> p2)
Construct a segment with the two given points.SegmentPoint2i(Point2D<?,?> p1, Point2D<?,?> p2)
Construct a segment with the two given points. -
Uses of Point2D in org.arakhne.afc.math.geometry.d2.ifx
Classes in org.arakhne.afc.math.geometry.d2.ifx that implement Point2D Modifier and Type Class Description class
OrientedPoint2ifx
2D oriented point with integer FX properties.class
Point2ifx
2D Point with 2 integer FX properties.Methods in org.arakhne.afc.math.geometry.d2.ifx with parameters of type Point2D Modifier and Type Method Description boolean
Path2ifx. containsControlPoint(Point2D<?,?> pt)
Point2ifx
GeomFactory2ifx. convertToPoint(Point2D<?,?> point)
Vector2ifx
GeomFactory2ifx. convertToVector(Point2D<?,?> point)
void
Path2ifx. curveTo(Point2D<?,?> ctrl1, Point2D<?,?> ctrl2, Point2D<?,?> to)
void
Path2ifx. lineTo(Point2D<?,?> to)
void
Path2ifx. moveTo(Point2D<?,?> position)
void
Path2ifx. quadTo(Point2D<?,?> ctrl, Point2D<?,?> to)
boolean
Path2ifx. remove(Point2D<?,?> point)
Remove the point from this path.void
Circle2ifx. setCenter(Point2D<?,?> center)
void
Path2ifx. setLastPoint(Point2D<?,?> point)
void
Segment2ifx. setP1(Point2D<?,?> pt)
void
Segment2ifx. setP2(Point2D<?,?> pt)
Constructors in org.arakhne.afc.math.geometry.d2.ifx with parameters of type Point2D Constructor Description Circle2ifx(Point2D<?,?> center, int radius)
Construct a circle at the given position and with the given radius.OrientedPoint2ifx(Point2D<?,?> point, Vector2D<?,?> tangent)
Construct an oriented point from a point and a tangent vector.Rectangle2ifx(Point2D<?,?> min, Point2D<?,?> max)
Construct a rectangle with the given minimum and maximum corners.Segment2ifx(Point2D<?,?> p1, Point2D<?,?> p2)
Construct a segment with the two given points. -
Uses of Point2D in org.arakhne.afc.math.matrix
Methods in org.arakhne.afc.math.matrix with parameters of type Point2D Modifier and Type Method Description boolean
Matrix2d. cov(Vector2D<?,?> result, Point2D<?,?>... tuples)
Set this matrix with the covariance matrix's elements for the given set of tuples. -
Uses of Point2D in org.arakhne.afc.nodefx
Methods in org.arakhne.afc.nodefx with parameters of type Point2D Modifier and Type Method Description default Point2d
ZoomableViewer. toDocumentPosition(Point2D<?,?> position)
Replies the position inside the document that corresponds to the given position on screen.default Point2d
ZoomableViewer. toScreenPosition(Point2D<?,?> position)
Replies the position on the screen that corresponds to the given position within the document.
-