mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
[cpp] Fix passing argument by reference
This commit is contained in:
parent
eef05281fd
commit
28fb83d1d7
@ -65,7 +65,7 @@ namespace spine {
|
|||||||
bool aabbintersectsSegment(float x1, float y1, float x2, float y2);
|
bool aabbintersectsSegment(float x1, float y1, float x2, float y2);
|
||||||
|
|
||||||
/// Returns true if the axis aligned bounding box intersects the axis aligned bounding box of the specified bounds.
|
/// Returns true if the axis aligned bounding box intersects the axis aligned bounding box of the specified bounds.
|
||||||
bool aabbIntersectsSkeleton(SkeletonBounds bounds);
|
bool aabbIntersectsSkeleton(SkeletonBounds &bounds);
|
||||||
|
|
||||||
/// Returns true if the polygon contains the point.
|
/// Returns true if the polygon contains the point.
|
||||||
bool containsPoint(Polygon *polygon, float x, float y);
|
bool containsPoint(Polygon *polygon, float x, float y);
|
||||||
|
|||||||
@ -118,7 +118,7 @@ bool SkeletonBounds::aabbintersectsSegment(float x1, float y1, float x2, float y
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SkeletonBounds::aabbIntersectsSkeleton(SkeletonBounds bounds) {
|
bool SkeletonBounds::aabbIntersectsSkeleton(SkeletonBounds &bounds) {
|
||||||
return _minX < bounds._maxX && _maxX > bounds._minX && _minY < bounds._maxY && _maxY > bounds._minY;
|
return _minX < bounds._maxX && _maxX > bounds._minX && _minY < bounds._maxY && _maxY > bounds._minY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user