public final class PickSegment extends PickShape
| Modifier and Type | Field and Description |
|---|---|
(package private) Point3d |
end |
(package private) Point3d |
start |
PICKBOUNDINGBOX, PICKBOUNDINGPOLYTOPE, PICKBOUNDINGSPHERE, PICKCONE, PICKCYLINDER, PICKPOINT, PICKRAY, PICKSEGMENT, PICKUNKNOWN| Constructor and Description |
|---|
PickSegment()
Constructs an empty PickSegment.
|
PickSegment(Point3d start,
Point3d end)
Constructs a line segment pick shape from the specified
parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
get(Point3d start,
Point3d end)
Gets the parameters from this PickSegment.
|
(package private) int |
getPickType() |
(package private) Point3d |
getStartPoint() |
(package private) boolean |
intersect(Bounds bounds,
Point4d pickPos)
Return true if shape intersect with bounds.
|
void |
set(Point3d start,
Point3d end)
Sets the parameters of this PickSegment to the specified values.
|
(package private) PickShape |
transform(Transform3D t3d) |
public PickSegment()
public void set(Point3d start, Point3d end)
start - the start point of the line segment.end - the end point of the line segment.public void get(Point3d start, Point3d end)
start - the Point3d object into which the start
point will be copied.end - the Point3d object into which the end point
will be copied.final boolean intersect(Bounds bounds, Point4d pickPos)
PickShape transform(Transform3D t3d)
Point3d getStartPoint()
getStartPoint in class PickShapeint getPickType()
getPickType in class PickShapeCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.