public double getDistance(FramePoint framePoint) { checkReferenceFrameMatch(framePoint); return lineSegment3d.distance(framePoint.getPoint()); }

## Javadoc

Returns the minimum distance between a point and this given line segment.

Edge cases:

- if this.length() < Epsilons.ONE_TRILLIONTH, this method returns the distance between firstEndpoint and the given point.

## Popular methods of LineSegment3d

- getFirstEndpoint
- getSecondEndpoint
- <init>Initializes this line segment to have the given endpoints.
- firstEndpointContainsNaNTest if the first endpoint of this line segment contains Double#NaN.
- getDirectionComputes the vector going from the first to the second endpoint of this line segment.
- getDirectionCopyComputes the vector going from the first to the second endpoint of this line segment. WARNING: This
- getMidpointComputes the coordinates of the point located exactly at the middle of this line segment.
- isBetweenEndpointsTests whether the projection of the given point onto this line segment is located between the two en
- lengthComputes the length of this line segment.
- orthogonalProjectionComputes the orthogonal projection of a 3D point on this 3D line segment. Edge cases: * if the leng
- percentageAlongLineSegmentComputes a percentage along the line segment representing the location of the given point once proje
- pointBetweenEndPointsGivenPercentageComputes the coordinates of the point located at a given percentage on this line segment: pointToPac

## Popular in Java

- Parsing JSON documents to java classes using gson
- requestLocationUpdates (LocationManager)
- addToBackStack (FragmentTransaction)
- findViewById (Activity)
- VirtualMachine (com.sun.tools.attach)A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
- FileNotFoundException (java.io)Thrown when a file specified by a program cannot be found.
- HttpURLConnection (java.net)An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
- ArrayList (java.util)ArrayList is an implementation of List, backed by an array. All optional operations including adding
- Stack (java.util)Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
- Executor (java.util.concurrent)An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
- CodeWhisperer alternatives