C# Класс Spine.SkeletonBounds

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
AabbCompute ( ) : void

Описание методов

AabbContainsPoint() публичный метод

Returns true if the axis aligned bounding box contains the point.
public AabbContainsPoint ( float x, float y ) : bool
x float
y float
Результат bool

AabbIntersectsSegment() публичный метод

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
Результат bool

AabbIntersectsSkeleton() публичный метод

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
Результат bool

ContainsPoint() публичный метод

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
Результат BoundingBoxAttachment

ContainsPoint() публичный метод

Returns true if the polygon contains the point.
public ContainsPoint ( Polygon polygon, float x, float y ) : bool
polygon Polygon
x float
y float
Результат bool

GetPolygon() публичный метод

public GetPolygon ( BoundingBoxAttachment attachment ) : Polygon
attachment BoundingBoxAttachment
Результат Polygon

IntersectsSegment() публичный метод

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
Результат BoundingBoxAttachment

IntersectsSegment() публичный метод

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
Результат bool

SkeletonBounds() публичный метод

public SkeletonBounds ( ) : System
Результат System

Update() публичный метод

public Update ( Skeleton skeleton, bool updateAabb ) : void
skeleton Skeleton
updateAabb bool
Результат void