Uses of Class
georegression.struct.line.LineSegment2D_F32
Package
Description
-
Uses of LineSegment2D_F32 in georegression.geometry
Modifier and TypeMethodDescriptionstatic LineGeneral2D_F32
UtilLine2D_F32.convert
(LineSegment2D_F32 src, @Nullable LineGeneral2D_F32 ret) Converts a line segment into a general line.static LineParametric2D_F32
UtilLine2D_F32.convert
(LineSegment2D_F32 src, @Nullable LineParametric2D_F32 ret) Converts a line segment into a parametric line. -
Uses of LineSegment2D_F32 in georegression.metric
Modifier and TypeMethodDescriptionstatic Point2D_F32
ClosestPoint2D_F32.closestPoint
(LineSegment2D_F32 line, Point2D_F32 p, @Nullable Point2D_F32 output) Finds the closest point on the line segment to the provided point 'p'.static float
Distance2D_F32.distance
(LineSegment2D_F32 line, float x, float y) Returns the Euclidean distance of the closest point on a line segment to the specified point.static float
Distance2D_F32.distance
(LineSegment2D_F32 segmentA, LineSegment2D_F32 segmentB) Finds the distance between the two line segmentsstatic float
Distance2D_F32.distance
(LineSegment2D_F32 line, Point2D_F32 p) Returns the Euclidean distance of the closest point on a line segment to the specified point.static float
Distance2D_F32.distanceSq
(LineSegment2D_F32 line, float x, float y) Returns the Euclidean distance squared of the closest point on a line segment to the specified point.static float
Distance2D_F32.distanceSq
(LineSegment2D_F32 segmentA, LineSegment2D_F32 segmentB) Finds the distance squared between the two line segmentsstatic float
Distance2D_F32.distanceSq
(LineSegment2D_F32 line, Point2D_F32 p) Returns the Euclidean distance squared of the closest point on a line segment to the specified point.static float
Distance2D_F32.distanceSq
(Polygon2D_F32 poly, Point2D_F32 p, @Nullable LineSegment2D_F32 storage) Returns the Euclidean distance squared of the closest point on the Polygon to the provided point.static float
Intersection2D_F32.intersection
(LineParametric2D_F32 target, LineSegment2D_F32 l) Finds the point of intersection between a line and a line segment.static @Nullable Point2D_F32
Intersection2D_F32.intersection
(LineSegment2D_F32 l_0, LineSegment2D_F32 l_1, @Nullable Point2D_F32 ret) Finds the point of intersection between two lines segments.static boolean
Intersection2D_F32.intersects
(LineSegment2D_F32 a, LineSegment2D_F32 b, float tol) Returns true if the two line segments intersect.static boolean
Intersection2D_F32.intersects
(LineSegment2D_F32 line, Rectangle2D_F32 rect, float tol) Checks to see if the line segment and rectangle intersect each other.static boolean
Intersection2D_F32.intersects2
(LineSegment2D_F32 a, LineSegment2D_F32 b, float tol) Returns true if the two line segments intersect. -
Uses of LineSegment2D_F32 in georegression.struct
Modifier and TypeMethodDescriptionstatic LineSegment2D_F32
ConvertFloatType.convert
(LineSegment2D_F64 src, @Nullable LineSegment2D_F32 dst) Modifier and TypeMethodDescriptionstatic LineSegment2D_F64
ConvertFloatType.convert
(LineSegment2D_F32 src, @Nullable LineSegment2D_F64 dst) static LineSegment2D_F32
ConvertFloatType.convert
(LineSegment2D_F64 src, @Nullable LineSegment2D_F32 dst) -
Uses of LineSegment2D_F32 in georegression.struct.line
Modifier and TypeMethodDescriptionLineSegment2D_F32.copy()
LineSegment2D_F32.setTo
(float x0, float y0, float x1, float y1) LineSegment2D_F32.setTo
(LineSegment2D_F32 l) LineSegment2D_F32.setTo
(Point2D_F32 a, Point2D_F32 b) static LineSegment2D_F32
LineSegment2D_F32.wrap
(Point2D_F32 a, Point2D_F32 b) -
Uses of LineSegment2D_F32 in georegression.struct.shapes
Modifier and TypeMethodDescriptionPolygon2D_F32.getLine
(int index, LineSegment2D_F32 storage) Returns the line/edge defined by vertex index and index+1.Quadrilateral_F32.getLine
(int which, LineSegment2D_F32 storage) Modifier and TypeMethodDescriptionPolygon2D_F32.getLine
(int index, LineSegment2D_F32 storage) Returns the line/edge defined by vertex index and index+1.Quadrilateral_F32.getLine
(int which, LineSegment2D_F32 storage)