C# 클래스 Spine.SkeletonBounds

파일 보기 프로젝트 열기: EsotericSoftware/spine-runtimes 1 사용 예제들

공개 메소드들

메소드 설명
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