C# Class Spine.SkeletonBounds

Show file Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Public Methods

Method Description
AabbContainsPoint ( float x, float y ) : bool

Returns true if the axis aligned bounding box contains the point.

AabbIntersectsSegment ( float x1, float y1, float x2, float y2 ) : bool

Returns true if the axis aligned bounding box intersects the line segment.

AabbIntersectsSkeleton ( SkeletonBounds bounds ) : bool

Returns true if the axis aligned bounding box intersects the axis aligned bounding box of the specified bounds.

ContainsPoint ( float x, float y ) : BoundingBoxAttachment

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 {@link #aabbContainsPoint(float, float)} returns true.

ContainsPoint ( Polygon polygon, float x, float y ) : bool

Returns true if the polygon contains the point.

GetPolygon ( BoundingBoxAttachment attachment ) : Polygon
IntersectsSegment ( float x1, float y1, float x2, float y2 ) : BoundingBoxAttachment

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.

IntersectsSegment ( Polygon polygon, float x1, float y1, float x2, float y2 ) : bool

Returns true if the polygon contains the line segment.

SkeletonBounds ( ) : System
Update ( Skeleton skeleton, bool updateAabb ) : void

Private Methods

Method Description
AabbCompute ( ) : void

Method Details

AabbContainsPoint() public method

Returns true if the axis aligned bounding box contains the point.
public AabbContainsPoint ( float x, float y ) : bool
x float
y float
return bool

AabbIntersectsSegment() public method

Returns true if the axis aligned bounding box intersects the line segment.
public AabbIntersectsSegment ( float x1, float y1, float x2, float y2 ) : bool
x1 float
y1 float
x2 float
y2 float
return bool

AabbIntersectsSkeleton() public method

Returns true if the axis aligned bounding box intersects the axis aligned bounding box of the specified bounds.
public AabbIntersectsSkeleton ( SkeletonBounds bounds ) : bool
bounds SkeletonBounds
return bool

ContainsPoint() public method

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 {@link #aabbContainsPoint(float, float)} returns true.
public ContainsPoint ( float x, float y ) : BoundingBoxAttachment
x float
y float
return BoundingBoxAttachment

ContainsPoint() public method

Returns true if the polygon contains the point.
public ContainsPoint ( Polygon polygon, float x, float y ) : bool
polygon Polygon
x float
y float
return bool

GetPolygon() public method

public GetPolygon ( BoundingBoxAttachment attachment ) : Polygon
attachment BoundingBoxAttachment
return Polygon

IntersectsSegment() public method

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.
public IntersectsSegment ( float x1, float y1, float x2, float y2 ) : BoundingBoxAttachment
x1 float
y1 float
x2 float
y2 float
return BoundingBoxAttachment

IntersectsSegment() public method

Returns true if the polygon contains the line segment.
public IntersectsSegment ( Polygon polygon, float x1, float y1, float x2, float y2 ) : bool
polygon Polygon
x1 float
y1 float
x2 float
y2 float
return bool

SkeletonBounds() public method

public SkeletonBounds ( ) : System
return System

Update() public method

public Update ( Skeleton skeleton, bool updateAabb ) : void
skeleton Skeleton
updateAabb bool
return void