C# Class MiningGameServer.Shapes.ShapeAABB

Inheritance: Shape
显示文件 Open project: geel9/Minor-Destruction Class Usage Examples

Public Properties

Property Type Description
Center Vector2
Height int
Width int

Public Methods

Method Description
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

Method Details

CollideAABB() public method

public CollideAABB ( ShapeAABB bound2 ) : AABBCollisionResult
bound2 ShapeAABB
return AABBCollisionResult

CollideLineSegment() public method

public CollideLineSegment ( ShapeLineSegment collidingWith ) : SegmentCollisionResult
collidingWith ShapeLineSegment
return SegmentCollisionResult

CollideRay() public method

public CollideRay ( ShapeRay collidingWith ) : RayCollisionResult
collidingWith ShapeRay
return RayCollisionResult

Contains() public method

public Contains ( ShapeAABB boundBox ) : bool
boundBox ShapeAABB
return bool

Intersects() public method

public Intersects ( ShapeAABB boundBox ) : bool
boundBox ShapeAABB
return bool

RotateAroundOrigin() public static method

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

ShapeAABB() public method

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

ShapeAABB() public method

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

ToRectangle() public method

public ToRectangle ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

Property Details

Center public_oe property

public Vector2 Center
return Vector2

Height public_oe property

public int Height
return int

Width public_oe property

public int Width
return int