mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 02:28:44 +08:00
Javadoc.
This commit is contained in:
parent
8e9595f496
commit
c333b84740
@ -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;
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user