| Package | Description |
|---|---|
| net.returnvoid.graphics.shape |
A package for building, drawing and manipulating shapes.
|
| Modifier and Type | Method and Description |
|---|---|
Line |
Line.copy() |
Line |
Line.draw() |
Line |
LineSegments.getLine()
Converts this shape to a line which shares the same start and end as this
shape.
|
Line |
LineSegments.getLine(int i)
Returns the line with the given index.
|
Line[] |
Rect.getLines()
Converts the rectangle to four lines.
|
Line[] |
LineSegments.getLines()
Converts this shape to a lines (each segment will be a single line).
|
Line |
Line.getNormalLine(float lineLength)
Builds a line, that represents the normal of this line.
|
Line |
Line.rotate(float angle) |
Line |
Line.rotate(processing.core.PVector rotationCenter,
float angle) |
Line |
Line.scale(float scale) |
Line |
Line.scale(processing.core.PVector scaleCenter,
float scale) |
Line |
Line.setLength(float length)
Sets the length of this line.
|
Line |
Line.setLength(processing.core.PVector center,
float length)
Sets the length of this line.
|
Line |
Line.setLocation(float x,
float y) |
Line |
Line.setRotation(float angle) |
Line |
Line.setRotation(processing.core.PVector rotationCenter,
float angle) |
Line |
Line.setX(float x) |
Line |
Line.setY(float y) |
Line |
LineSegments.toLine()
Converts this shape to a line which shares the same start and end as this
shape.
|
Line[] |
Rect.toLines()
Converts the rectangle to four lines.
|
Line[] |
LineSegments.toLines()
Converts this shape to a lines (each segment will be a single line).
|
static Line[] |
Line.toLines(processing.core.PApplet parent,
processing.core.PVector[] points)
Creates lines from the given point set.
|
Line |
Line.translate(float x,
float y) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Line.hasIntersection(Line other)
Tests if two lines have an intersection.
|
boolean |
Line.hasIntersection(Line other,
boolean ignoreStartEnd)
Tests if two lines have an intersection.
|
static boolean |
Line.hasIntersection(Line base,
Line other)
Tests if two lines have an intersection.
|
boolean |
Curve.hasIntersection(Line curveSeg,
Line other)
Tests if a curve segment has a intersection with the given line.
|
static boolean |
Line.hasIntersection(Line base,
Line other,
boolean ignoreStartEnd)
Tests if two lines have an intersection.
|
boolean |
Curve.hasIntersection(Line curveSeg,
Line other,
boolean ignoreStartEnd)
Tests if a curve segment has a intersection with the given line.
|
processing.core.PVector |
Line.intersection(Line other)
Returns the location of an intersection of two lines if they have an
intersection.
|
processing.core.PVector |
Line.intersection(Line other,
boolean ignoreStartEnd)
Returns the location of an intersection of two lines if they have an
intersection.
|
static processing.core.PVector |
Line.intersection(Line base,
Line other)
Returns the location of an intersection of two lines if they have an
intersection.
|
processing.core.PVector |
Curve.intersection(Line curveSeg,
Line other)
Returns the location of an intersection a curve segment with a line if
they have an intersection.
|
static processing.core.PVector |
Line.intersection(Line base,
Line other,
boolean ignoreStartEnd)
Returns the location of an intersection of two lines if they have an
intersection.
|
processing.core.PVector |
Curve.intersection(Line curveSeg,
Line other,
boolean ignoreStartEnd)
Returns the location of an intersection a curve segment with a line if
they have an intersection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
LineSegments.removeIntersectingLines(java.util.ArrayList<Line> toRemove)
Removes all lines from the given set of lines that intersect with this
shape.
|
static void |
Line.removeIntersectingLines(java.util.ArrayList<Line> lines)
Removes lines from the given set of lines if they intersect with other
lines of the list.
|
void |
Curve.removeIntersectingLines(java.util.ArrayList<Line> toRemove)
Removes all lines from the given set of lines that intersect with this
shape.
|
void |
LineSegments.removeIntersectingLines(java.util.ArrayList<Line> toRemove,
boolean ignoreStartEnd)
Removes all lines from the given set of lines that intersect with this
shape.
|
static void |
Line.removeIntersectingLines(java.util.ArrayList<Line> lines,
boolean ignoreStartEnd)
Removes lines from the given set of lines if they intersect with other
lines of the list.
|
void |
Curve.removeIntersectingLines(java.util.ArrayList<Line> toRemove,
boolean ignoreStartEnd)
Removes all lines from the given set of lines that intersect with this
shape.
|
static void |
Line.removeIntersectingLinesHierarchical(java.util.ArrayList<Line> lines)
Removes lines from the given set of lines if they intersect with other
lines of the list.
|
static void |
Line.removeIntersectingLinesHierarchical(java.util.ArrayList<Line> lines,
boolean ignoreStartEnd)
Removes lines from the given set of lines if they intersect with other
lines of the list.
|