Top Description Fields Constructors Methods
org.apache.commons.math3.geometry.euclidean.threed

public Class Segment

extends Object
Class Inheritance

Simple container for a two-points segment.
Since
3.0

Field Summary

Modifier and TypeField and Description
private final Vector3D
end

End point of the segments.

private final Line
line

Line containing the segment.

private final Vector3D
start

Start point of the segment.

Constructor Summary

AccessConstructor and Description
public
Segment(final Vector3D
start point of the segment
start
,
final Vector3D
end point of the segment
end
,
final Line
line containing the segment
line
)

Build a segment.

Method Summary

Modifier and TypeMethod and Description
public Vector3D

Returns:

end point of the segment
getEnd
()

Get the end point of the segment.

public Line

Returns:

line containing the segment
getLine
()

Get the line containing the segment.

public Vector3D

Returns:

start point of the segment
getStart
()

Get the start point of the segment.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

endback to summary
private final Vector3D end

End point of the segments.

lineback to summary
private final Line line

Line containing the segment.

startback to summary
private final Vector3D start

Start point of the segment.

Constructor Detail

Segmentback to summary
public Segment(final Vector3D start, final Vector3D end, final Line line)

Build a segment.

Parameters
start:Vector3D

start point of the segment

end:Vector3D

end point of the segment

line:Line

line containing the segment

Method Detail

getEndback to summary
public Vector3D getEnd()

Get the end point of the segment.

Returns:Vector3D

end point of the segment

getLineback to summary
public Line getLine()

Get the line containing the segment.

Returns:Line

line containing the segment

getStartback to summary
public Vector3D getStart()

Get the start point of the segment.

Returns:Vector3D

start point of the segment