C# Class Spine.SkeletonBounds

Afficher le fichier Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
AabbCompute ( ) : void

Method Details

AabbContainsPoint() public méthode

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

AabbIntersectsSegment() public méthode

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
Résultat bool

AabbIntersectsSkeleton() public méthode

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
Résultat bool

ContainsPoint() public méthode

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
Résultat BoundingBoxAttachment

ContainsPoint() public méthode

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

GetPolygon() public méthode

public GetPolygon ( BoundingBoxAttachment attachment ) : Polygon
attachment BoundingBoxAttachment
Résultat Polygon

IntersectsSegment() public méthode

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
Résultat BoundingBoxAttachment

IntersectsSegment() public méthode

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
Résultat bool

SkeletonBounds() public méthode

public SkeletonBounds ( ) : System
Résultat System

Update() public méthode

public Update ( Skeleton skeleton, bool updateAabb ) : void
skeleton Skeleton
updateAabb bool
Résultat void