|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object math.geom3d.line.LineSegment3D
public class LineSegment3D
Field Summary |
---|
Fields inherited from interface math.geom3d.Shape3D |
---|
ACCURACY |
Constructor Summary | |
---|---|
LineSegment3D(Point3D p1,
Point3D p2)
|
Method Summary | |
---|---|
Box3D |
boundingBox()
|
Shape3D |
clip(Box3D box)
|
boolean |
contains(Point3D point)
|
java.util.Collection<LineSegment3D> |
continuousCurves()
Returns the collection of continuous curves which constitute this curve. |
double |
distance(Point3D point)
Gets the distance of the shape to the given point, or the distance of point to the frontier of the shape in the case of a plain shape. |
Point3D |
firstPoint()
Get the first point of the curve. |
double |
getT0()
Return 0, by definition of LineSegment. |
double |
getT1()
Return 1, by definition of LineSegment. |
boolean |
isBounded()
Returns true, as a LineSegment3D is always bounded. |
boolean |
isEmpty()
Returns false, as a LineSegment3D is never empty. |
Point3D |
lastPoint()
Get the last point of the curve. |
Point3D |
point(double t)
Gets the point from a parametric representation of the curve. |
double |
position(Point3D point)
If point does not project on the line segment, return Double.NaN. |
double |
project(Point3D point)
Returns the position of the closest orthogonal projection of the point on the curve, or of the closest singular point. |
Curve3D |
reverseCurve()
Returns the curve with same trace on the plane with parametrization in reverse order. |
java.util.Collection<Point3D> |
singularPoints()
Returns the2 end points. |
LineSegment3D |
subCurve(double t0,
double t1)
Returns a portion of the original curve, delimited by two positions on the curve. |
StraightLine3D |
supportingLine()
|
Curve3D |
transform(AffineTransform3D trans)
Transforms the curve by an affine transform. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineSegment3D(Point3D p1, Point3D p2)
Method Detail |
---|
public StraightLine3D supportingLine()
public java.util.Collection<LineSegment3D> continuousCurves()
Curve3D
continuousCurves
in interface Curve3D
public Point3D firstPoint()
Curve3D
getPoint(getT0())
.
firstPoint
in interface Curve3D
public Point3D lastPoint()
Curve3D
getPoint(getT1())
.
lastPoint
in interface Curve3D
public Point3D point(double t)
Curve3D
point
in interface Curve3D
public double position(Point3D point)
position
in interface Curve3D
point
- a point belonging to the curve
Curve3D.position(math.geom3d.Point3D)
public Curve3D reverseCurve()
Curve3D
reverseCurve
in interface Curve3D
public java.util.Collection<Point3D> singularPoints()
singularPoints
in interface Curve3D
Curve3D.singularPoints()
public LineSegment3D subCurve(double t0, double t1)
Curve3D
subCurve
in interface Curve3D
t0
- position of the start of the sub-curvet1
- position of the end of the sub-curve
public double getT0()
getT0
in interface Curve3D
Curve3D.getT0()
public double getT1()
getT1
in interface Curve3D
Curve3D.getT1()
public double project(Point3D point)
Curve3D
project
in interface Curve3D
point
- a point to project
public Curve3D transform(AffineTransform3D trans)
Curve3D
transform
in interface Curve3D
transform
in interface Shape3D
public Shape3D clip(Box3D box)
clip
in interface Shape3D
public boolean contains(Point3D point)
contains
in interface Shape3D
public Box3D boundingBox()
boundingBox
in interface Shape3D
public double distance(Point3D point)
Shape3D
distance
in interface Shape3D
public boolean isBounded()
isBounded
in interface Shape3D
Shape3D.isBounded()
public boolean isEmpty()
isEmpty
in interface Shape3D
Shape3D.isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |