public class LineSegment extends Object
Constructor | Description |
---|---|
LineSegment(Vector startPoint,
Vector endPoint) |
Creates a new line segment.
|
Modifier and Type | Method | Description |
---|---|---|
Rectangle2D.Float |
getBoundingRectange() |
Computes the bounding rectangle for this line segment.
|
Vector |
getEndPoint() |
|
float |
getLength() |
|
Vector |
getStartPoint() |
|
LineSegment |
transformBy(Matrix m) |
Transforms the segment by the specified matrix
|
public Vector getStartPoint()
public Vector getEndPoint()
public float getLength()
public Rectangle2D.Float getBoundingRectange()
public LineSegment transformBy(Matrix m)
m
- the matrix for the transformationCopyright © 2018. All rights reserved.