C# 클래스 MiningGameServer.Shapes.ShapeAABB

상속: Shape
파일 보기 프로젝트 열기: geel9/Minor-Destruction 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Center Vector2
Height int
Width int

공개 메소드들

메소드 설명
CollideAABB ( ShapeAABB bound2 ) : AABBCollisionResult
CollideLineSegment ( ShapeLineSegment collidingWith ) : SegmentCollisionResult
CollideRay ( ShapeRay collidingWith ) : RayCollisionResult
Contains ( ShapeAABB boundBox ) : bool
Intersects ( ShapeAABB boundBox ) : bool
RotateAroundOrigin ( Vector2 point, Vector2 origin, double angle ) : Vector2
ShapeAABB ( Rectangle r, float rotation ) : System
ShapeAABB ( float x, float y, float width, float height, float rotation ) : System
ToRectangle ( ) : Rectangle

메소드 상세

CollideAABB() 공개 메소드

public CollideAABB ( ShapeAABB bound2 ) : AABBCollisionResult
bound2 ShapeAABB
리턴 AABBCollisionResult

CollideLineSegment() 공개 메소드

public CollideLineSegment ( ShapeLineSegment collidingWith ) : SegmentCollisionResult
collidingWith ShapeLineSegment
리턴 SegmentCollisionResult

CollideRay() 공개 메소드

public CollideRay ( ShapeRay collidingWith ) : RayCollisionResult
collidingWith ShapeRay
리턴 RayCollisionResult

Contains() 공개 메소드

public Contains ( ShapeAABB boundBox ) : bool
boundBox ShapeAABB
리턴 bool

Intersects() 공개 메소드

public Intersects ( ShapeAABB boundBox ) : bool
boundBox ShapeAABB
리턴 bool

RotateAroundOrigin() 공개 정적인 메소드

public static RotateAroundOrigin ( Vector2 point, Vector2 origin, double angle ) : Vector2
point Vector2
origin Vector2
angle double
리턴 Vector2

ShapeAABB() 공개 메소드

public ShapeAABB ( Rectangle r, float rotation ) : System
r Microsoft.Xna.Framework.Rectangle
rotation float
리턴 System

ShapeAABB() 공개 메소드

public ShapeAABB ( float x, float y, float width, float height, float rotation ) : System
x float
y float
width float
height float
rotation float
리턴 System

ToRectangle() 공개 메소드

public ToRectangle ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

프로퍼티 상세

Center 공개적으로 프로퍼티

public Vector2 Center
리턴 Vector2

Height 공개적으로 프로퍼티

public int Height
리턴 int

Width 공개적으로 프로퍼티

public int Width
리턴 int