public class Segment extends Line
| Constructor and Description |
|---|
Segment(Line l1,
Line l2)
Instantiates a new segment.
|
| Modifier and Type | Method and Description |
|---|---|
double |
distanceTo(Point p)
Distance to.
|
static void |
main(java.lang.String[] args)
The main method.
|
Point |
projectionOf(Point p)
Projection of.
|
void |
setLengthOffset(double lengthOffset)
Sets the length offset.
|
center, intersection, toStringpublic double distanceTo(Point p)
p - the ppublic Point projectionOf(Point p)
p - the ppublic void setLengthOffset(double lengthOffset)
lengthOffset - the new length offsetpublic static void main(java.lang.String[] args)
args - the arguments