This commit is contained in:
NathanSweet 2016-01-20 14:58:25 +01:00
parent 8e9595f496
commit c333b84740
2 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -80,7 +80,7 @@ public class SkeletonActorPool extends Pool<SkeletonActor> {
}
/** This pool keeps a reference to the obtained instance, so it should be returned to the pool via {@link #free(SkeletonActor)}
* , {@link #freeAll(Array)}, or {@link #freeComplete()} to avoid leaking memory. */
* , {@link #freeAll(Array)} or {@link #freeComplete()} to avoid leaking memory. */
public SkeletonActor obtain () {
SkeletonActor actor = super.obtain();
actor.setSkeleton(skeletonPool.obtain());