public class LineSegment extends Object
Constructor and Description |
---|
LineSegment(Vector startPoint, Vector endPoint)
Creates a new line segment.
|
Modifier and Type | Method and 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 transformation
Copyright © 1998–2018. All rights reserved.