public class Segment extends Object
| Constructor and Description |
|---|
Segment(Vector3D startIn,
Vector3D endIn)
Build a segment.
|
Segment(Vector3D startIn,
Vector3D endIn,
Line lineIn)
Build a segment.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3D |
getEnd()
Get the end point of the segment.
|
Line |
getLine()
Get the line containing the segment.
|
Vector3D |
getStart()
Get the start point of the segment.
|
static boolean |
isIntersectingSegments(Segment[] segments)
Indicates whether or not the given segments intersect each other.
|
public Segment(Vector3D startIn, Vector3D endIn, Line lineIn)
startIn - start point of the segmentendIn - end point of the segmentlineIn - line containing the segmentpublic Vector3D getStart()
public Vector3D getEnd()
public Line getLine()
public static boolean isIntersectingSegments(Segment[] segments)
segments - array of segmentstrue if the given segments intersect each otherCopyright © 2025 CNES. All rights reserved.