cocos2d-x
3.3
|
Classes | |
struct | spPolygon |
struct | spSkeletonBounds |
Functions | |
spPolygon * | spPolygon_create (int capacity) |
void | spPolygon_dispose (spPolygon *self) |
int | spPolygon_containsPoint (spPolygon *polygon, float x, float y) |
int | spPolygon_intersectsSegment (spPolygon *polygon, float x1, float y1, float x2, float y2) |
spSkeletonBounds * | spSkeletonBounds_create () |
void | spSkeletonBounds_dispose (spSkeletonBounds *self) |
void | spSkeletonBounds_update (spSkeletonBounds *self, spSkeleton *skeleton, intupdateAabb) |
int | spSkeletonBounds_aabbContainsPoint (spSkeletonBounds *self, float x, float y) |
Returns true if the axis aligned bounding box contains the point. More... | |
int | spSkeletonBounds_aabbIntersectsSegment (spSkeletonBounds *self, float x1, float y1, float x2, float y2) |
Returns true if the axis aligned bounding box intersects the line segment. More... | |
int | spSkeletonBounds_aabbIntersectsSkeleton (spSkeletonBounds *self, spSkeletonBounds *bounds) |
Returns true if the axis aligned bounding box intersects the axis aligned bounding box of the specified bounds. More... | |
spBoundingBoxAttachment * | spSkeletonBounds_containsPoint (spSkeletonBounds *self, float x, float y) |
Returns the first bounding box attachment that contains the point, or null. More... | |
spBoundingBoxAttachment * | spSkeletonBounds_intersectsSegment (spSkeletonBounds *self, float x1, float y1, float x2, float y2) |
Returns the first bounding box attachment that contains the line segment, or null. More... | |
spPolygon * | spSkeletonBounds_getPolygon (spSkeletonBounds *self, spBoundingBoxAttachment *boundingBox) |
Returns the polygon for the specified bounding box, or null. More... | |
int spPolygon_containsPoint | ( | spPolygon * | polygon, |
float | x, | ||
float | y | ||
) |
spPolygon* spPolygon_create | ( | int | capacity | ) |
void spPolygon_dispose | ( | spPolygon * | self | ) |
int spPolygon_intersectsSegment | ( | spPolygon * | polygon, |
float | x1, | ||
float | y1, | ||
float | x2, | ||
float | y2 | ||
) |
int spSkeletonBounds_aabbContainsPoint | ( | spSkeletonBounds * | self, |
float | x, | ||
float | y | ||
) |
Returns true if the axis aligned bounding box contains the point.
int spSkeletonBounds_aabbIntersectsSegment | ( | spSkeletonBounds * | self, |
float | x1, | ||
float | y1, | ||
float | x2, | ||
float | y2 | ||
) |
Returns true if the axis aligned bounding box intersects the line segment.
int spSkeletonBounds_aabbIntersectsSkeleton | ( | spSkeletonBounds * | self, |
spSkeletonBounds * | bounds | ||
) |
Returns true if the axis aligned bounding box intersects the axis aligned bounding box of the specified bounds.
spBoundingBoxAttachment* spSkeletonBounds_containsPoint | ( | spSkeletonBounds * | self, |
float | x, | ||
float | y | ||
) |
Returns the first bounding box attachment that contains the point, or null.
When doing many checks, it is usually more efficient to only call this method if spSkeletonBounds_aabbContainsPoint returns true.
spSkeletonBounds* spSkeletonBounds_create | ( | ) |
void spSkeletonBounds_dispose | ( | spSkeletonBounds * | self | ) |
spPolygon* spSkeletonBounds_getPolygon | ( | spSkeletonBounds * | self, |
spBoundingBoxAttachment * | boundingBox | ||
) |
Returns the polygon for the specified bounding box, or null.
spBoundingBoxAttachment* spSkeletonBounds_intersectsSegment | ( | spSkeletonBounds * | self, |
float | x1, | ||
float | y1, | ||
float | x2, | ||
float | y2 | ||
) |
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 spSkeletonBounds_aabbIntersectsSegment returns true.
void spSkeletonBounds_update | ( | spSkeletonBounds * | self, |
spSkeleton * | skeleton, | ||
intupdateAabb | |||
) |