NathanSweet 9 years ago
parent
commit
c333b84740

+ 4 - 3
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBounds.java

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

+ 1 - 1
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/utils/SkeletonActorPool.java

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