C# 클래스 Project290.Physics.Collision.AABB

An axis aligned bounding box.
파일 보기 프로젝트 열기: scastle/Solitude 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
LowerBound Vector2
UpperBound Vector2

공개 메소드들

메소드 설명
AABB ( Vector2 min, Vector2 max ) : System
AABB ( float width, float height, Vector2 position ) : System
Combine ( AABB &aabb ) : void

Combine an AABB into this one.

Combine ( AABB &aabb1, AABB &aabb2 ) : void

Combine two AABBs into this one.

Contains ( AABB &aabb ) : bool

Does this aabb contain the provided AABB.

Contains ( Vector2 &point ) : bool

Determines whether the AAABB contains the specified point.

IsValid ( ) : bool

Verify that the bounds are sorted.

RayCast ( RayCastOutput &output, RayCastInput &input ) : bool
TestOverlap ( AABB &a, AABB &b ) : bool
TestOverlap ( Shape shapeA, int indexA, Shape shapeB, int indexB, Transform &xfA, Transform &xfB ) : bool

메소드 상세

AABB() 공개 메소드

public AABB ( Vector2 min, Vector2 max ) : System
min Vector2
max Vector2
리턴 System

AABB() 공개 메소드

public AABB ( float width, float height, Vector2 position ) : System
width float
height float
position Vector2
리턴 System

Combine() 공개 메소드

Combine an AABB into this one.
public Combine ( AABB &aabb ) : void
aabb AABB The aabb.
리턴 void

Combine() 공개 메소드

Combine two AABBs into this one.
public Combine ( AABB &aabb1, AABB &aabb2 ) : void
aabb1 AABB The aabb1.
aabb2 AABB The aabb2.
리턴 void

Contains() 공개 메소드

Does this aabb contain the provided AABB.
public Contains ( AABB &aabb ) : bool
aabb AABB The aabb.
리턴 bool

Contains() 공개 메소드

Determines whether the AAABB contains the specified point.
public Contains ( Vector2 &point ) : bool
point Vector2 The point.
리턴 bool

IsValid() 공개 메소드

Verify that the bounds are sorted.
public IsValid ( ) : bool
리턴 bool

RayCast() 공개 메소드

public RayCast ( RayCastOutput &output, RayCastInput &input ) : bool
output RayCastOutput
input RayCastInput
리턴 bool

TestOverlap() 공개 정적인 메소드

public static TestOverlap ( AABB &a, AABB &b ) : bool
a AABB
b AABB
리턴 bool

TestOverlap() 공개 정적인 메소드

public static TestOverlap ( Shape shapeA, int indexA, Shape shapeB, int indexB, Transform &xfA, Transform &xfB ) : bool
shapeA Project290.Physics.Collision.Shapes.Shape
indexA int
shapeB Project290.Physics.Collision.Shapes.Shape
indexB int
xfA Transform
xfB Transform
리턴 bool

프로퍼티 상세

LowerBound 공개적으로 프로퍼티

The lower vertex
public Vector2 LowerBound
리턴 Vector2

UpperBound 공개적으로 프로퍼티

The upper vertex
public Vector2 UpperBound
리턴 Vector2