|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object math.geom3d.line.StraightLine3D
public class StraightLine3D
Field Summary |
---|
Fields inherited from interface math.geom3d.Shape3D |
---|
ACCURACY |
Constructor Summary | |
---|---|
StraightLine3D()
|
|
StraightLine3D(double x0,
double y0,
double z0,
double dx,
double dy,
double dz)
|
|
StraightLine3D(Point3D p1,
Point3D p2)
Constructs a line passing through the 2 points. |
|
StraightLine3D(Point3D origin,
Vector3D direction)
|
Method Summary | |
---|---|
Box3D |
boundingBox()
|
Shape3D |
clip(Box3D box)
|
boolean |
contains(Point3D point)
|
java.util.Collection<StraightLine3D> |
continuousCurves()
Returns the collection of continuous curves which constitute this curve. |
Vector3D |
direction()
|
double |
distance(Point3D p)
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()
Returns -INFINITY; |
double |
getT1()
Returns +INFINITY; |
boolean |
isBounded()
Returns true if the shape is bounded, that is if we can draw a finite rectangle enclosing the shape. |
boolean |
isEmpty()
|
Point3D |
lastPoint()
Get the last point of the curve. |
Point3D |
origin()
|
Point3D |
point(double t)
Gets the point from a parametric representation of the curve. |
double |
position(Point3D point)
Get position of the point on the curve. |
StraightLine2D |
project(Plane3D plane)
|
double |
project(Point3D point)
Compute the position of the orthogonal projection of the given point on this line. |
StraightLine3D |
reverseCurve()
Returns the curve with same trace on the plane with parametrization in reverse order. |
java.util.Collection<Point3D> |
singularPoints()
Returns an empty array of Point3D. |
Curve3D |
subCurve(double t0,
double t1)
Returns a portion of the original curve, delimited by two positions on the curve. |
StraightLine3D |
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 StraightLine3D()
public StraightLine3D(Point3D origin, Vector3D direction)
public StraightLine3D(Point3D p1, Point3D p2)
p1
- the first pointp2
- the second pointpublic StraightLine3D(double x0, double y0, double z0, double dx, double dy, double dz)
Method Detail |
---|
public Point3D origin()
public Vector3D direction()
public StraightLine2D project(Plane3D plane)
public Shape3D clip(Box3D box)
clip
in interface Shape3D
public boolean contains(Point3D point)
contains
in interface Shape3D
public boolean isEmpty()
isEmpty
in interface Shape3D
public boolean isBounded()
Shape3D
isBounded
in interface Shape3D
public Box3D boundingBox()
boundingBox
in interface Shape3D
public double distance(Point3D p)
Shape3D
distance
in interface Shape3D
public StraightLine3D transform(AffineTransform3D trans)
Curve3D
transform
in interface Curve3D
transform
in interface Shape3D
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)
Curve3D
position
in interface Curve3D
point
- a point belonging to the curve
public StraightLine3D reverseCurve()
Curve3D
reverseCurve
in interface Curve3D
public java.util.Collection<Point3D> singularPoints()
singularPoints
in interface Curve3D
public Curve3D 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
public double getT1()
getT1
in interface Curve3D
public double project(Point3D point)
project
in interface Curve3D
point
- a point to project
public java.util.Collection<StraightLine3D> continuousCurves()
Curve3D
continuousCurves
in interface Curve3D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |