public class Edge extends StraightLine
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(Transform t)
Applies the Transform t to the object.
|
boolean |
equals(java.lang.Object o) |
PointND |
evaluate(double u)
Returns a point on the Curve at position u [0, 1];
|
PointND |
getEnd() |
double |
getLastInternalIndex() |
double |
getLength()
Returns length of edge in mm
|
PointND[] |
getRasterPoints(int number)
Rasters the shape with a given number of points or less.
|
PointND |
intersect(StraightLine line) |
boolean |
isBounded()
Returns true if the shape is of limited space
|
void |
setEnds(PointND point,
PointND point2) |
java.lang.String |
toString() |
computeDistanceTo, getDimension, getDirection, getPoint, init, init, intersect, intersect, normalize, setDirection, setPoint
evaluate, getInternalDimension
getHitsOnBoundingBox_slow, getHitsOnBoundingBox, getMax, getMin, getName, setName
public double getLastInternalIndex()
public PointND getEnd()
public boolean isBounded()
AbstractShape
isBounded
in class StraightLine
public PointND intersect(StraightLine line)
intersect
in class StraightLine
public PointND evaluate(double u)
AbstractCurve
evaluate
in class StraightLine
u
- the internal one dimensional positionpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class StraightLine
public PointND[] getRasterPoints(int number)
AbstractShape
getRasterPoints
in class StraightLine
number
- the number of pointspublic void applyTransform(Transform t)
Transformable
applyTransform
in interface Transformable
applyTransform
in class StraightLine
t
- the transform to apply to the object.public double getLength()