|
@@ -157,8 +157,9 @@ public class SkeletonBounds {
|
|
|
return inside;
|
|
|
}
|
|
|
|
|
|
- /** Returns the first bounding box attachment that contains the line segment, or null. When doing many checks, it is usually
|
|
|
- * more efficient to only call this method if {@link #aabbIntersectsSegment(float, float, float, float)} returns true. */
|
|
|
+ /** Returns the first bounding box attachment that contains any part of the line segment, or null. When doing many checks, it
|
|
|
+ * is usually more efficient to only call this method if {@link #aabbIntersectsSegment(float, float, float, float)} returns
|
|
|
+ * true. */
|
|
|
public BoundingBoxAttachment intersectsSegment (float x1, float y1, float x2, float y2) {
|
|
|
Array<FloatArray> polygons = this.polygons;
|
|
|
for (int i = 0, n = polygons.size; i < n; i++)
|
|
@@ -166,7 +167,7 @@ public class SkeletonBounds {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- /** Returns true if the polygon contains the line segment. */
|
|
|
+ /** Returns true if the polygon contains any part of the line segment. */
|
|
|
public boolean intersectsSegment (FloatArray polygon, float x1, float y1, float x2, float y2) {
|
|
|
float[] vertices = polygon.items;
|
|
|
int nn = polygon.size;
|