C# Class MiningGameServer.Shapes.ShapeAABB

Inheritance: Shape
Afficher le fichier Open project: geel9/Minor-Destruction Class Usage Examples

Méthodes publiques

Свойство Type Description
Center Vector2
Height int
Width int

Méthodes publiques

Méthode 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 méthode

public CollideAABB ( ShapeAABB bound2 ) : AABBCollisionResult
bound2 ShapeAABB
Résultat AABBCollisionResult

CollideLineSegment() public méthode

public CollideLineSegment ( ShapeLineSegment collidingWith ) : SegmentCollisionResult
collidingWith ShapeLineSegment
Résultat SegmentCollisionResult

CollideRay() public méthode

public CollideRay ( ShapeRay collidingWith ) : RayCollisionResult
collidingWith ShapeRay
Résultat RayCollisionResult

Contains() public méthode

public Contains ( ShapeAABB boundBox ) : bool
boundBox ShapeAABB
Résultat bool

Intersects() public méthode

public Intersects ( ShapeAABB boundBox ) : bool
boundBox ShapeAABB
Résultat bool

RotateAroundOrigin() public static méthode

public static RotateAroundOrigin ( Vector2 point, Vector2 origin, double angle ) : Vector2
point Vector2
origin Vector2
angle double
Résultat Vector2

ShapeAABB() public méthode

public ShapeAABB ( Rectangle r, float rotation ) : System
r Microsoft.Xna.Framework.Rectangle
rotation float
Résultat System

ShapeAABB() public méthode

public ShapeAABB ( float x, float y, float width, float height, float rotation ) : System
x float
y float
width float
height float
rotation float
Résultat System

ToRectangle() public méthode

public ToRectangle ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

Property Details

Center public_oe property

public Vector2 Center
Résultat Vector2

Height public_oe property

public int Height
Résultat int

Width public_oe property

public int Width
Résultat int