C# Class Danmaku_no_Kyojin.Collisions.CollisionCircle

Inheritance: CollisionElement
ファイルを表示 Open project: Noxalus/Danmaku-no-Kyojin Class Usage Examples

Public Methods

Method Description
CollisionCircle ( Entity parent, Vector2 relativePosition, float radius ) : System
Draw ( SpriteBatch sp ) : void
GetCenter ( ) : Vector2
Intersects ( CollisionElement collisionElement ) : bool
Project ( Vector2 axis ) : Vector2

Private Methods

Method Description
Intersects ( CollisionCircle element ) : bool
Intersects ( CollisionConvexPolygon element ) : bool

Method Details

CollisionCircle() public method

public CollisionCircle ( Entity parent, Vector2 relativePosition, float radius ) : System
parent Entity
relativePosition Vector2
radius float
return System

Draw() public method

public Draw ( SpriteBatch sp ) : void
sp Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

GetCenter() public method

public GetCenter ( ) : Vector2
return Vector2

Intersects() public method

public Intersects ( CollisionElement collisionElement ) : bool
collisionElement CollisionElement
return bool

Project() public method

public Project ( Vector2 axis ) : Vector2
axis Vector2
return Vector2