C# Class ThreadedPlatformer.Circle

Represents a 2D circle.
Afficher le fichier Open project: sq/Fracture

Méthodes publiques

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

Méthodes publiques

Méthode Description
Circle ( Vector2 position, float radius ) : System

Constructs a new circle.

Intersects ( Rectangle rectangle ) : bool

Determines if a circle intersects a rectangle.

Method Details

Circle() public méthode

Constructs a new circle.
public Circle ( Vector2 position, float radius ) : System
position Vector2
radius float
Résultat System

Intersects() public méthode

Determines if a circle intersects a rectangle.
public Intersects ( Rectangle rectangle ) : bool
rectangle Microsoft.Xna.Framework.Rectangle
Résultat bool

Property Details

Center public_oe property

Center position of the circle.
public Vector2 Center
Résultat Vector2

Radius public_oe property

Radius of the circle.
public float Radius
Résultat float