C# Class xnapunk.colliders.CircleCollider

Inheritance: Collider
Afficher le fichier Open project: Gnoll/XNAPunk Class Usage Examples

Méthodes publiques

Свойство Type Description
Radius float

Méthodes publiques

Méthode Description
CircleCollider ( float radius, Vector2 offset ) : System
GetCenter ( ) : Vector2
GetCenterX ( ) : float
GetCenterY ( ) : float
IntersectsLine ( Vector2 start, Vector2 end, float lineWidth ) : bool
IntersectsPoint ( Vector2 point ) : bool
Type ( ) : Collider.ColliderType

Method Details

CircleCollider() public méthode

public CircleCollider ( float radius, Vector2 offset ) : System
radius float
offset Vector2
Résultat System

GetCenter() public méthode

public GetCenter ( ) : Vector2
Résultat Vector2

GetCenterX() public méthode

public GetCenterX ( ) : float
Résultat float

GetCenterY() public méthode

public GetCenterY ( ) : float
Résultat float

IntersectsLine() public méthode

public IntersectsLine ( Vector2 start, Vector2 end, float lineWidth ) : bool
start Vector2
end Vector2
lineWidth float
Résultat bool

IntersectsPoint() public méthode

public IntersectsPoint ( Vector2 point ) : bool
point Vector2
Résultat bool

Type() public méthode

public Type ( ) : Collider.ColliderType
Résultat Collider.ColliderType

Property Details

Radius public_oe property

public float Radius
Résultat float