Package | Description |
---|---|
org.apache.commons.geometry.euclidean.twod |
This package provides basic 2D geometry components.
|
Modifier and Type | Method and Description |
---|---|
Segment |
Segment.reverse() |
Segment |
Line.segment(double a,
double b)
Create a new line segment from the given 1D interval.
|
Segment |
Line.segment(Vector2D a,
Vector2D b)
Create a new line segment from two points.
|
static Segment |
Lines.segmentFromLocations(Line line,
double a,
double b)
Construct a new line segment from a pair of 1D locations on a line.
|
static Segment |
Lines.segmentFromPoints(Line line,
Vector2D a,
Vector2D b)
Construct a new line segment from a line and a pair of points.
|
static Segment |
Lines.segmentFromPoints(Vector2D startPoint,
Vector2D endPoint,
Precision.DoubleEquivalence precision)
Construct a new line segment from two points.
|
Segment |
Segment.transform(Transform<Vector2D> transform) |
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.