public class HatchLineSegment
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected double |
angle |
protected double |
currentLength |
protected Vector |
direction |
protected int |
index |
protected double |
l |
protected double |
length |
protected ParametricLine |
line |
protected double[] |
pattern |
protected Point |
startPoint |
protected double |
totalLength |
| Constructor and Description |
|---|
HatchLineSegment(ParametricLine line,
double length,
double startLength,
double[] pattern) |
HatchLineSegment(Point startPoint,
double angle,
double length) |
HatchLineSegment(Point startPoint,
Vector direction,
double length) |
| Modifier and Type | Method and Description |
|---|---|
double |
getLength() |
Point |
getPoint(double offset) |
Point |
getPointAt(double para) |
Point |
getStartPoint() |
boolean |
hasNext() |
protected void |
initialize(double startLength) |
boolean |
isSolid() |
double |
next() |
protected Point startPoint
protected Vector direction
protected double angle
protected double totalLength
protected double length
protected double currentLength
protected double[] pattern
protected double l
protected int index
protected ParametricLine line
public HatchLineSegment(Point startPoint, double angle, double length)
startPoint - angle - the angle in degreespublic HatchLineSegment(ParametricLine line, double length, double startLength, double[] pattern)
public Point getStartPoint()
public double getLength()
public Point getPoint(double offset)
public Point getPointAt(double para)
public boolean hasNext()
public double next()
protected void initialize(double startLength)
public boolean isSolid()